Linus Walleij
54d77198fd
gpio: bail out silently on NULL descriptors
...
In fdeb8e1547cb9dd39d5d7223b33f3565cf86c28e
("gpio: reflect base and ngpio into gpio_device")
assumed that GPIO descriptors are either valid or error
pointers, but gpiod_get_[index_]optional() actually return
NULL descriptors and then all subsequent calls should just
bail out.
Cc: stable@vger.kernel.org
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Andrew Lunn <andrew@lunn.ch>
Fixes: fdeb8e1547cb ("gpio: reflect base and ngpio into gpio_device")
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2016-05-30 16:56:41 +02:00
..
2016-05-27 15:26:11 -07:00
2016-05-05 19:00:40 +01:00
2016-03-01 16:38:16 -08:00
2016-05-27 15:26:11 -07:00
2016-03-17 21:38:27 -07:00
2016-05-25 15:29:21 -07:00
2016-05-24 11:00:20 -07:00
2016-05-26 19:34:26 -07:00
2016-05-13 16:54:59 +02:00
2016-05-19 10:02:26 -07:00
2016-01-06 08:25:24 -05:00
2016-05-20 22:31:33 -07:00
2016-05-27 15:26:11 -07:00
2016-05-19 11:27:09 -07:00
2016-01-04 21:46:45 -05:00
2016-05-27 15:26:11 -07:00
2016-05-18 02:48:37 +02:00
2016-05-27 15:26:11 -07:00
2016-05-20 22:02:55 -07:00
2015-11-16 09:27:32 +05:30
2016-05-03 11:22:10 +09:00
2016-05-27 15:26:11 -07:00
2016-04-29 17:37:10 -07:00
2016-05-17 17:05:30 -07:00
2016-04-04 08:32:45 +09:00
2016-05-04 14:16:49 -04:00
2016-05-20 21:26:15 -07:00
2015-11-24 15:25:46 -08:00
2016-05-30 16:56:41 +02:00
2016-05-27 15:26:11 -07:00
2016-05-17 12:42:27 +02:00
2016-05-09 22:45:18 +02:00
2016-05-01 09:23:14 -07:00
2016-05-26 09:48:23 -07:00
2016-05-20 17:58:30 -07:00
2016-05-20 21:20:31 -07:00
2016-05-28 17:37:42 +02:00
2016-04-12 16:00:39 -06:00
2016-04-09 02:17:43 +02:00
2016-05-20 22:20:48 -07:00
2016-05-28 12:04:17 -07:00
2016-05-27 19:14:35 -07:00
2016-05-27 15:26:11 -07:00
2016-04-30 09:26:55 -07:00
2016-05-28 16:41:39 -07:00
2016-05-20 20:57:27 -07:00
2016-05-25 10:40:15 -07:00
2016-04-13 11:36:44 +02:00
2016-05-06 12:51:10 -06:00
2016-05-01 18:33:04 +10:00
2016-05-08 22:44:46 +05:30
2016-05-03 15:52:28 -07:00
2016-05-27 14:28:09 -07:00
2016-05-28 16:15:25 -07:00
2016-05-24 11:00:20 -07:00
2016-05-23 17:04:14 -07:00
2016-05-18 16:38:59 -07:00
2016-05-27 15:26:11 -07:00
2016-05-20 21:20:31 -07:00
2016-05-27 15:26:11 -07:00
2016-05-27 18:49:29 -07:00
2016-05-27 15:26:11 -07:00
2016-05-10 00:01:47 +02:00
2016-03-26 11:44:33 -04:00
2016-05-26 19:34:26 -07:00
2016-05-17 17:14:21 -06:00
2016-05-27 15:26:11 -07:00
2016-05-24 11:00:20 -07:00
2016-04-04 10:41:08 -07:00
2016-03-16 14:45:55 -07:00
2016-04-30 13:56:46 -07:00
2016-05-20 21:20:31 -07:00
2016-05-01 18:32:32 +10:00
2016-05-05 10:13:59 +02:00
2016-05-20 21:12:25 -07:00
2016-05-26 15:35:44 -07:00
2016-05-28 12:32:01 -07:00
2016-05-20 21:26:15 -07:00
2016-05-20 14:06:21 -07:00
2016-05-16 19:17:22 -07:00
2015-10-01 09:59:16 -07:00
2015-09-29 23:00:58 +10:00
2016-03-15 12:13:56 -07:00
2016-05-25 10:40:15 -07:00
2016-05-05 17:38:53 -07:00
2016-05-17 14:45:02 +02:00
2016-05-12 15:50:19 -07:00
2016-04-01 16:31:09 +02:00
2016-05-06 11:08:58 -07:00
2016-05-21 17:07:17 +02:00
2016-05-26 19:34:26 -07:00
2016-05-20 18:33:37 -07:00
2016-05-28 12:04:17 -07:00
2016-03-04 12:12:08 +01:00
2016-05-19 15:20:24 +02:00
2016-05-28 12:23:12 -07:00
2016-04-30 14:15:56 -07:00
2016-04-26 15:34:49 +02:00
2016-05-28 11:04:16 -07:00
2016-05-28 12:04:17 -07:00
2016-05-26 09:23:43 -07:00
2016-05-02 12:09:22 -05:00
2016-05-27 15:26:11 -07:00
2016-05-01 14:11:12 -07:00
2016-05-28 12:04:17 -07:00
2015-12-01 14:26:33 -08:00
2016-05-25 09:47:26 -07:00
2016-05-10 01:19:26 -07:00
2016-05-27 15:26:11 -07:00
2016-02-16 10:11:12 +01:00
2016-05-22 19:44:13 +03:00
2016-05-01 14:00:00 -07:00
2016-05-01 14:37:49 -07:00
2016-05-25 10:19:17 -07:00
2016-05-28 12:04:17 -07:00
2016-01-25 09:42:23 +01:00
2016-05-23 11:18:01 -07:00
2016-05-20 22:02:53 -07:00