aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2010-05-24 14:33:49 -0700
committerLinus Torvalds <[email protected]>2010-05-25 08:07:08 -0700
commit6ba8bcd457d9fc793ac9435aa2e4138f571d4ec5 (patch)
treed562dedc503e3f67d80517494b53afa651418bb8 /net/unix/af_unix.c
parent72cc8e51cfdde9007adab7d841ac4113b05b2c56 (diff)
rtc-cmos: do dev_set_drvdata() earlier in the initialization
The bug is an oops when dev_get_drvdata() returned null in cmos_update_irq_enable(). The call tree looks like this: rtc_dev_ioctl() => rtc_update_irq_enable() => cmos_update_irq_enable() It's caused by a race condition in the module initialization. It is rtc_device_register() which makes the ioctl operations live so I moved the call to dev_set_drvdata() before the call to rtc_device_register(). Addresses https://bugzilla.kernel.org/show_bug.cgi?id=15963 Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Tested-by: Randy Dunlap <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Malte Schroder <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: Herton Ronaldo Krzesinski <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions