Christophe Leroy
6f553912ee
powerpc/sysdev/simple_gpio: Fix oops in gpio save_regs function
...
of_mm_gpiochip_add_data() generates an oops for NULL pointer dereference.
of_mm_gpiochip_add_data() calls mm_gc->save_regs() before
setting the data, therefore ->save_regs() cannot use gpiochip_get_data()
Fixes: 937daafca774 ("powerpc: simple-gpio: use gpiochip data pointer")
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-06-01 19:54:41 +10:00
..
2016-09-20 20:57:12 +10:00
2017-04-26 23:28:12 +10:00
2017-05-09 11:50:01 +02:00
2012-07-11 14:18:22 +10:00
2017-04-25 13:20:46 -07:00
2017-05-02 22:35:00 -05:00
2015-09-16 15:43:10 +02:00
2010-03-04 10:43:58 -06:00
2016-09-25 02:38:52 -05:00
2016-09-25 02:38:52 -05:00
2016-08-04 08:50:07 -04:00
2016-08-07 23:50:09 -04:00
2015-03-31 14:19:47 +11:00
2016-09-20 20:57:12 +10:00
2012-07-26 13:24:32 -05:00
2012-03-16 14:50:25 -05:00
2016-07-08 19:55:34 -05:00
2016-09-20 20:57:12 +10:00
2016-12-09 23:08:40 -06:00
2016-09-20 20:57:12 +10:00
2013-07-01 18:38:42 -05:00
2016-09-20 20:57:12 +10:00
2015-03-23 19:51:18 -05:00
2016-09-25 02:38:54 -05:00
2015-12-11 16:56:16 +01:00
2016-12-04 19:51:44 -06:00
2016-03-16 15:22:32 +11:00
2016-11-14 11:11:51 +11:00
2016-03-22 15:36:02 -07:00
2016-03-22 15:36:02 -07:00
2016-11-23 01:23:37 -06:00
2016-09-25 02:38:50 -05:00
2011-07-12 09:28:04 -05:00
2016-09-20 20:57:12 +10:00
2015-01-29 19:56:15 -06:00
2016-09-20 20:57:12 +10:00
2012-02-14 14:06:50 -07:00
2017-04-10 21:41:34 +10:00
2017-04-10 21:41:34 +10:00
2014-06-25 18:49:40 -05:00
2016-09-13 17:35:47 +10:00
2015-10-15 20:32:01 +11:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2015-10-13 19:01:23 +02:00
2014-01-09 17:52:14 -06:00
2016-09-20 20:57:12 +10:00
2016-09-25 02:38:51 -05:00
2015-05-11 19:55:25 +10:00
2016-08-02 17:31:41 -04:00
2014-09-25 23:14:46 +10:00
2013-01-03 15:57:04 -08:00
2016-09-20 20:57:12 +10:00
2014-01-16 16:31:31 +00:00
2013-10-09 20:04:11 -05:00
2016-09-20 20:57:12 +10:00
2014-11-10 09:59:34 +11:00
2016-03-31 09:14:22 +02:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2013-12-10 11:25:04 +11:00
2014-11-10 09:59:26 +11:00
2011-12-09 07:51:02 -05:00
2016-09-20 20:57:12 +10:00
2013-07-15 11:25:01 +09:30
2017-04-11 07:46:03 +10:00
2017-06-01 19:54:41 +10:00
2012-03-28 18:30:02 +01:00
2016-12-24 11:46:01 -08:00
2014-01-15 13:46:44 +11:00
2016-09-20 20:57:12 +10:00
2016-11-29 09:14:50 +00:00
2014-09-25 23:14:46 +10:00