Kim, Milo
1430e17844
drivers/rtc/rtc-tps65910.c: fix invalid pointer access on _remove()
...
The tps65910_rtc data is registered as the platform driver data in
_probe(= ). Therefore the tps65910_rtc should be used on unregistering
the rtc device. And device pointer should be retrieved from the
platform_device structure.
This patch fixes the below oops:
Unable to handle kernel NULL pointer dereference at virtual address 00000008
Modules linked in: rtc_tps65910(-)
CPU: 0 Not tainted (3.7.0-rc7-next-20121128-g6b1f974-dirty #7 )
PC is at tps65910_rtc_alarm_irq_enable+0x20/0x2c [rtc_tps65910]
(tps65910_rtc_alarm_irq_enable+0x20/0x2c [rtc_tps65910])
(tps65910_rtc_remove+0x18/0x28 [rtc_tps65910])
(platform_drv_remove+0x18/0x1c)
(__device_release_driver+0x70/0xcc)
(driver_detach+0xb4/0xb8)
(bus_remove_driver+0x7c/0xc0)
(sys_delete_module+0x148/0x21c)
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-11-30 08:51:18 -08:00
..
2012-10-06 03:05:04 +09:00
2012-10-06 03:05:04 +09:00
2012-08-08 20:49:16 +02:00
2012-10-11 08:50:16 +09:00
2012-10-06 03:05:03 +09:00
2012-07-31 18:42:50 -07:00
2012-10-02 11:43:13 +02:00
2010-09-22 17:22:39 -07:00
2012-09-20 12:32:34 +02:00
2011-06-10 14:55:36 +02:00
2012-07-04 13:56:48 +02:00
2012-10-06 03:05:02 +09:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-08-08 20:49:16 +02:00
2012-10-06 03:05:04 +09:00
2012-07-30 17:25:18 -07:00
2012-03-23 16:58:39 -07:00
2011-06-01 19:29:39 -07:00
2012-01-10 16:30:53 -08:00
2010-03-30 22:02:32 +09:00
2012-01-10 16:30:53 -08:00
2010-10-29 19:06:53 +09:00
2012-03-23 16:58:39 -07:00
2012-05-29 16:22:33 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:05 +09:00
2012-01-10 16:30:53 -08:00
2012-10-06 03:05:01 +09:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-04-12 13:12:12 -07:00
2012-10-06 03:05:07 +09:00
2012-05-29 16:22:33 -07:00
2012-03-23 16:58:39 -07:00
2012-10-25 14:37:53 -07:00
2012-10-06 03:05:06 +09:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:03 +09:00
2011-08-26 17:26:35 -07:00
2012-05-29 16:22:34 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:07 +09:00
2012-05-29 16:22:33 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:02 +09:00
2012-07-09 00:16:10 +02:00
2012-01-10 16:30:53 -08:00
2012-07-30 17:25:18 -07:00
2012-04-26 11:17:01 +02:00
2012-03-23 16:58:39 -07:00
2011-05-06 18:02:03 -07:00
2012-07-25 17:06:23 +02:00
2012-10-06 03:05:04 +09:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2011-05-06 18:02:04 -07:00
2012-08-21 16:45:03 -07:00
2012-10-06 03:05:06 +09:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 17:36:29 -07:00
2012-07-30 17:25:18 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:01 +09:00
2012-01-10 10:29:42 +08:00
2012-08-16 16:13:07 +08:00
2012-07-30 17:25:18 -07:00
2012-10-06 03:05:03 +09:00
2011-05-06 18:02:05 -07:00
2010-10-27 15:30:32 +09:00
2012-08-21 16:45:03 -07:00
2012-10-06 03:05:06 +09:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:04 +09:00
2012-10-06 03:05:08 +09:00
2012-03-29 18:02:10 -07:00
2012-03-23 16:58:39 -07:00
2012-10-06 03:05:01 +09:00
2012-10-06 03:05:03 +09:00
2012-03-23 16:58:39 -07:00
2012-07-03 13:22:36 +08:00
2012-10-06 03:05:04 +09:00
2012-05-29 16:22:34 -07:00
2011-03-09 11:25:07 -08:00
2011-05-17 14:44:36 -04:00
2012-11-30 08:51:18 -08:00
2012-09-17 15:00:38 -07:00
2012-03-23 16:58:39 -07:00
2012-01-10 16:30:53 -08:00
2012-03-23 16:58:39 -07:00
2012-09-21 19:23:55 +12:00
2012-07-19 10:38:31 -04:00
2012-01-10 16:30:53 -08:00
2012-10-06 03:05:05 +09:00