projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55c640c
)
scripts/mod/modpost.c: fix commentary accordingly to last changes
author
Andy Shevchenko
<
[email protected]
>
Tue, 17 Aug 2010 10:36:40 +0000
(13:36 +0300)
committer
Michal Marek
<
[email protected]
>
Thu, 26 Aug 2010 11:55:23 +0000
(13:55 +0200)
The last commits
37ed19d5cce35a40d3913cf9aa208ce9f60db3d7
5003bab82d56754b27be01eef24495a02e00039d
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: Andy Shevchenko <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Acked-by: WANG Cong <
[email protected]
>
Signed-off-by: Michal Marek <
[email protected]
>
scripts/mod/modpost.c
patch
|
blob
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index c827309c29cf727bae89d42a4b6e38164b9d72a7..859bee4972e95fac48e9b63a670795f01e6c22f7 100644
(file)
--- 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,
* .cpuinit.data => __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 ");
else
strcat(p, " ");
- return r;
/* we leak her but we do not care */
+ return r;
} else {
return "";
}