From 624194ebb9e513baba90d859f7ae1885e92b7f65 Mon Sep 17 00:00:00 2001 From: kumudhakn Date: Tue, 30 Apr 2019 11:11:34 +0530 Subject: [PATCH] Fixed SVACE issue Change-Id: Id48d629eed926ad6d272d55fbcd8f953fd466dd0 Signed-off-by: kumudhakn --- scripts/mod/modpost.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index e080746..f52c7b6 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1311,6 +1311,9 @@ static char *sec2annotation(const char *s) { if (match(s, init_exit_sections)) { char *p = malloc(20); + if (p == NULL) { + return strdup(""); + } char *r = p; *p++ = '_'; -- 2.7.4