diff options
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index c827309c29cf..859bee4972e9 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1193,6 +1193,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr, | |||
1193 | * .cpuinit.data => __cpudata | 1193 | * .cpuinit.data => __cpudata |
1194 | * .memexitconst => __memconst | 1194 | * .memexitconst => __memconst |
1195 | * etc. | 1195 | * etc. |
1196 | * | ||
1197 | * The memory of returned value has been allocated on a heap. The user of this | ||
1198 | * method should free it after usage. | ||
1196 | */ | 1199 | */ |
1197 | static char *sec2annotation(const char *s) | 1200 | static char *sec2annotation(const char *s) |
1198 | { | 1201 | { |
@@ -1215,7 +1218,7 @@ static char *sec2annotation(const char *s) | |||
1215 | strcat(p, "data "); | 1218 | strcat(p, "data "); |
1216 | else | 1219 | else |
1217 | strcat(p, " "); | 1220 | strcat(p, " "); |
1218 | return r; /* we leak her but we do not care */ | 1221 | return r; |
1219 | } else { | 1222 | } else { |
1220 | return ""; | 1223 | return ""; |
1221 | } | 1224 | } |