diff options
author | Anatolij Gustschin <[email protected]> | 2012-03-05 14:59:16 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-05 15:49:43 -0800 |
commit | 73737b878767ef441d7cc34ebeeba01dd0a68dd6 (patch) | |
tree | 6f8bbc31654c7d3ee8551743e84a85a5d540dd5c /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 22ea71d7f49c3115e3a9ced5eac109fef26d3559 (diff) |
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 <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions