Fixed SVACE issue 82/205182/1
authorkumudhakn <kumudha.n@samsung.com>
Tue, 30 Apr 2019 05:41:34 +0000 (11:11 +0530)
committerkumudhakn <kumudha.n@samsung.com>
Tue, 30 Apr 2019 05:41:34 +0000 (11:11 +0530)
Change-Id: Id48d629eed926ad6d272d55fbcd8f953fd466dd0
Signed-off-by: kumudhakn <kumudha.n@samsung.com>
scripts/mod/modpost.c

index e080746e1a6b528a218b416b5344368cd6db7065..f52c7b65c7cd835f4d9403b22e2fd0809157905c 100644 (file)
@@ -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++ = '_';