Christophe Leroy
bb0a300f18
powerpc/sysdev/simple_gpio: Fix oops in gpio save_regs function
...
commit 6f553912eedafae13ff20b322a65e471fe7f5236 upstream.
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")
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-14 15:06:03 +02:00
..
2017-05-25 15:44:47 +02:00
2017-05-03 08:36:39 -07:00
2017-06-14 15:06:02 +02:00
2017-06-14 15:05:56 +02:00
2016-10-07 21:38:00 -07:00
2017-01-06 10:40:13 +01:00
2017-03-31 10:31:46 +02:00
2017-01-12 11:39:24 +01:00
2016-10-11 23:38:39 -07:00
2017-03-31 10:31:46 +02:00
2016-10-07 18:46:30 -07:00
2017-01-06 10:40:13 +01:00
2016-10-19 08:31:25 -07:00
2016-10-30 10:13:55 +01:00
2017-05-25 15:44:46 +02:00
2016-10-11 23:38:39 -07:00
2017-05-25 15:44:47 +02:00
2016-10-11 23:38:39 -07:00
2017-04-12 12:41:14 +02:00
2016-11-06 08:01:12 -08:00
2017-04-21 09:31:23 +02:00
2017-06-14 15:06:03 +02:00
2017-05-25 15:44:35 +02:00
2016-10-19 08:39:47 -07:00
2016-10-19 11:21:06 -07:00
2017-06-14 15:05:54 +02:00
2017-02-01 08:33:02 +01:00
2017-05-25 15:44:47 +02:00
2016-10-11 15:06:32 -07:00
2017-06-14 15:05:56 +02:00
2017-04-12 12:41:14 +02:00
2016-10-15 10:03:15 -07:00