diff options
| author | Ralf Baechle <[email protected]> | 2011-06-27 23:18:15 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-06-28 01:00:13 +0000 |
| commit | 1fc6e987d8f606371337211f52ff74c6753298a6 (patch) | |
| tree | 29222b9ec135a747575a14438ee4889b0f1b96b5 /net/lapb/lapb_iface.c | |
| parent | drivers/leds/leds-lp5523.c: fix section mismatches (diff) | |
| download | kernel-1fc6e987d8f606371337211f52ff74c6753298a6.tar.gz kernel-1fc6e987d8f606371337211f52ff74c6753298a6.zip | |
drivers/misc/ioc4.c: fix section mismatch / race condition
Fix this section mismatch:
WARNING: drivers/misc/ioc4.o(.data+0x144): Section mismatch in reference from the variable ioc4_load_modules_work to the function .devinit.text:ioc4_load_modules()
The variable ioc4_load_modules_work references
the function __devinit ioc4_load_modules()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*driver, *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
This one is potentially fatal; by the time ioc4_load_modules is invoked
it may already have been freed. For that reason ioc4_load_modules_work
can't be turned to __devinitdata but also because it's referenced in
ioc4_exit.
Signed-off-by: Ralf Baechle <[email protected]>
Acked-by: Brent Casavant <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions
