diff options
| author | James Bottomley <[email protected]> | 2009-08-26 12:34:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-08-27 19:33:19 +0000 |
| commit | 1b364bf438cf337a3818aee77d68c0713f3e1fc4 (patch) | |
| tree | 878d30319bd3721c6075eef8f3341c6fa9a5afd6 /drivers/acpi/utils.c | |
| parent | module: fix BUG_ON() for powerpc (and other function descriptor archs) (diff) | |
| download | kernel-1b364bf438cf337a3818aee77d68c0713f3e1fc4.tar.gz kernel-1b364bf438cf337a3818aee77d68c0713f3e1fc4.zip | |
module: workaround duplicate section names
The root cause is a duplicate section name (.text); is this legal?
[ Amerigo Wang: "AFAIK, yes." ]
However, there's a problem with commit
6d76013381ed28979cd122eb4b249a88b5e384fa in that if you fail to allocate
a mod->sect_attrs (in this case it's null because of the duplication),
it still gets used without checking in add_notes_attrs()
This should fix it
[ This patch leaves other problems, particularly the sections directory,
but recent parisc toolchains seem to produce these modules and this
prevents a crash and is a minimal change -- RR ]
Signed-off-by: James Bottomley <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Tested-by: Helge Deller <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/acpi/utils.c')
0 files changed, 0 insertions, 0 deletions
