aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 1ec7158b6c1..33122ca04e7 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1208,6 +1208,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr,
1208 * .cpuinit.data => __cpudata 1208 * .cpuinit.data => __cpudata
1209 * .memexitconst => __memconst 1209 * .memexitconst => __memconst
1210 * etc. 1210 * etc.
1211 *
1212 * The memory of returned value has been allocated on a heap. The user of this
1213 * method should free it after usage.
1211*/ 1214*/
1212static char *sec2annotation(const char *s) 1215static char *sec2annotation(const char *s)
1213{ 1216{
@@ -1230,7 +1233,7 @@ static char *sec2annotation(const char *s)
1230 strcat(p, "data "); 1233 strcat(p, "data ");
1231 else 1234 else
1232 strcat(p, " "); 1235 strcat(p, " ");
1233 return r; /* we leak her but we do not care */ 1236 return r;
1234 } else { 1237 } else {
1235 return strdup(""); 1238 return strdup("");
1236 } 1239 }