From: kumudhakn Date: Tue, 30 Apr 2019 05:41:34 +0000 (+0530) Subject: Fixed SVACE issue X-Git-Tag: submit/tizen/20190822.121107~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=624194ebb9e513baba90d859f7ae1885e92b7f65;p=sdk%2Femulator%2Femulator-kernel.git Fixed SVACE issue Change-Id: Id48d629eed926ad6d272d55fbcd8f953fd466dd0 Signed-off-by: kumudhakn --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index e080746e1a6b..f52c7b65c7cd 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++ = '_';