Wolfram Sang
5f54c8a00a
rtc: mxc: Initialize drvdata before registering device
...
Commit f44f7f96a20 ("RTC: Initialize kernel state from RTC") uncovered
an issue in a number of RTC drivers, where the drivers call
rtc_device_register before initializing the device or platform drvdata.
This frequently results in null pointer dereferences when the
rtc_device_register immediately makes use of the rtc device, calling
rtc_read_alarm.
The solution is to ensure the drvdata is initialized prior to registering
the rtc device.
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: rtc-linux@googlegroups.com
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
[fixed up commit log -jstultz]
Signed-off-by: John Stultz <john.stultz@linaro.org>
2011-05-06 17:40:10 -07:00
..
2011-03-29 18:44:05 -07:00
2010-03-12 15:52:28 -08:00
2011-04-13 01:54:09 +02:00
2011-03-22 17:44:16 -07:00
2011-03-22 17:44:16 -07:00
2010-09-22 17:22:39 -07:00
2010-10-29 00:29:19 +02:00
2011-02-03 13:02:35 -08:00
2011-03-31 11:26:23 -03:00
2011-03-09 11:24:54 -08:00
2009-02-11 14:25:36 -08:00
2011-04-13 01:54:09 +02:00
2009-12-16 07:20:00 -08:00
2010-03-30 22:02:32 +09:00
2011-03-15 20:01:36 -07:00
2011-04-20 18:46:56 +02:00
2007-05-08 11:15:18 -07:00
2011-03-09 11:24:54 -08:00
2011-02-17 14:59:42 -08:00
2009-02-05 12:56:46 -08:00
2010-03-30 22:02:32 +09:00
2011-02-03 13:02:35 -08:00
2010-10-29 19:06:53 +09:00
2011-02-03 13:02:35 -08:00
2011-02-03 13:02:35 -08:00
2011-03-22 17:44:16 -07:00
2011-03-17 10:32:47 -06:00
2011-03-22 17:44:16 -07:00
2011-03-09 11:23:37 -08:00
2009-01-06 15:59:25 -08:00
2010-05-21 09:37:31 -07:00
2011-03-09 11:23:37 -08:00
2011-03-17 10:32:47 -06:00
2009-04-01 08:59:24 -07:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:07 -07:00
2009-04-02 01:05:31 +00:00
2010-08-11 08:59:07 -07:00
2011-03-22 17:44:16 -07:00
2010-08-11 08:59:08 -07:00
2011-03-09 11:23:37 -08:00
2010-12-10 22:24:24 -08:00
2011-03-31 11:26:23 -03:00
2011-02-03 13:02:35 -08:00
2011-03-17 10:32:47 -06:00
2010-03-30 22:02:32 +09:00
2011-02-03 13:02:35 -08:00
2010-08-11 08:59:07 -07:00
2010-08-11 08:59:07 -07:00
2011-01-13 08:03:12 -08:00
2011-04-28 11:16:21 +02:00
2011-01-14 12:38:16 +01:00
2011-04-14 16:06:54 -07:00
2011-03-16 17:28:10 -07:00
2011-04-07 11:27:42 +02:00
2011-02-03 13:02:50 -08:00
2011-02-03 13:02:35 -08:00
2011-05-06 17:40:10 -07:00
2011-03-09 11:23:37 -08:00
2011-04-18 10:39:38 +02:00
2011-03-09 11:23:37 -08:00
2010-03-30 22:02:32 +09:00
2010-08-11 08:59:06 -07:00
2009-12-16 07:19:58 -08:00
2011-03-09 11:23:37 -08:00
2011-03-17 18:48:35 -07:00
2011-03-17 18:48:35 -07:00
2011-03-09 11:25:04 -08:00
2009-04-02 01:05:32 +00:00
2011-03-09 11:23:37 -08:00
2009-09-23 07:39:43 -07:00
2011-02-03 13:02:50 -08:00
2010-10-27 15:30:32 +09:00
2010-03-30 22:02:32 +09:00
2011-03-09 11:24:54 -08:00
2011-03-09 11:23:34 -08:00
2010-07-27 14:32:06 -07:00
2011-03-29 18:46:26 -07:00
2010-06-03 11:33:58 +02:00
2011-03-09 11:25:08 -08:00
2011-03-29 14:48:19 +02:00
2008-11-21 01:24:38 -08:00
2010-05-21 09:37:31 -07:00
2011-03-09 11:23:37 -08:00
2008-11-14 16:37:54 -08:00
2010-03-12 15:52:28 -08:00
2011-03-22 17:44:16 -07:00
2011-03-09 11:25:07 -08:00
2011-03-09 11:23:37 -08:00
2010-05-21 09:37:31 -07:00
2010-03-30 22:02:32 +09:00
2011-03-09 11:23:35 -08:00
2011-03-09 11:23:37 -08:00
2011-03-09 11:23:37 -08:00
2011-03-31 11:26:23 -03:00