summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorAnatolij Gustschin2012-03-05 23:59:16 +0100
committerLinus Torvalds2012-03-06 00:49:43 +0100
commit73737b878767ef441d7cc34ebeeba01dd0a68dd6 (patch)
tree6f8bbc31654c7d3ee8551743e84a85a5d540dd5c /mm/memcontrol.c
parentc2port: class_create() returns an ERR_PTR (diff)
downloadkernel-qcow2-linux-73737b878767ef441d7cc34ebeeba01dd0a68dd6.tar.gz
kernel-qcow2-linux-73737b878767ef441d7cc34ebeeba01dd0a68dd6.tar.xz
kernel-qcow2-linux-73737b878767ef441d7cc34ebeeba01dd0a68dd6.zip
drivers/rtc/rtc-r9701.c: fix crash in r9701_remove()
If probing the RTC didn't succeed due to failed RTC register access, the RTC device will be unregistered. Then, when removing the module r9701_remove() causes a kernel crash while trying to unregister a not registered RTC device. Fix this by doing RTC register access test before RTC device registration. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions