Commit cbcf14a9 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Michal Marek

scripts/mod/modpost.c: fix commentary accordingly to last changes

The last commits
have introduced new behaviour of sec2annotation() method. However, the
commentary inside the method was left as before. Let's fix it accordingly.
Signed-off-by: default avatarAndy Shevchenko <>
Cc: Rusty Russell <>
Cc: Andrew Morton <>
Acked-by: default avatarWANG Cong <>
Signed-off-by: default avatarMichal Marek <>
parent 55c640c3
......@@ -1193,6 +1193,9 @@ static Elf_Sym *find_elf_symbol2(struct elf_info *elf, Elf_Addr addr,
* => __cpudata
* .memexitconst => __memconst
* etc.
* The memory of returned value has been allocated on a heap. The user of this
* method should free it after usage.
static char *sec2annotation(const char *s)
......@@ -1215,7 +1218,7 @@ static char *sec2annotation(const char *s)
strcat(p, "data ");
strcat(p, " ");
return r; /* we leak her but we do not care */
return r;
} else {
return "";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment