From e3f3a9cfaeef2f246e2e667ce75b41a2077e4d20 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 11 Aug 2010 00:42:26 -0700 Subject: [PATCH] --- yaml --- r: 208391 b: refs/heads/master c: 5003bab82d56754b27be01eef24495a02e00039d h: refs/heads/master i: 208389: 9efc95d2d5a3828b526ebf3acb3b8601c79e2fc6 208387: 1b734b4b0d1f39f66a724756db4507f3e1c54dbb 208383: 1622465fa44717400f58c49909e6e38008e03648 v: v3 --- [refs] | 2 +- trunk/scripts/mod/modpost.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 45590e45601c..2e7efd1e6f70 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3d30701b58970425e1d45994d6cb82f828924fdd +refs/heads/master: 5003bab82d56754b27be01eef24495a02e00039d diff --git a/trunk/scripts/mod/modpost.c b/trunk/scripts/mod/modpost.c index 1ce655dde99e..7acbdd8fcaed 100644 --- a/trunk/scripts/mod/modpost.c +++ b/trunk/scripts/mod/modpost.c @@ -14,6 +14,7 @@ #define _GNU_SOURCE #include #include +#include #include "modpost.h" #include "../../include/generated/autoconf.h" #include "../../include/linux/license.h" @@ -1217,7 +1218,7 @@ static char *sec2annotation(const char *s) strcat(p, " "); return r; /* we leak her but we do not care */ } else { - return ""; + return strdup(""); } } @@ -1352,7 +1353,7 @@ static void report_sec_mismatch(const char *modname, "%s%s so it may be used outside an exit section.\n", from, prl_from, fromsym, from_p, to, prl_to, tosym, to_p, - sec2annotation(tosec), tosym, to_p); + prl_to, tosym, to_p); free(prl_from); free(prl_to); break;