Files
linux/drivers
Adam Ford 02c1fb11b6 serial: mctrl_gpio: Check for NULL pointer
[ Upstream commit 37e3ab00e4 ]

When using mctrl_gpio_to_gpiod, it dereferences gpios into a single
requested GPIO.  This dereferencing can break if gpios is NULL,
so this patch adds a NULL check before dereferencing it.  If
gpios is NULL, this function will also return NULL.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>
Link: https://lore.kernel.org/r/20191006163314.23191-1-aford173@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-06 13:05:52 +01:00
..
2019-10-07 18:57:08 +02:00
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:08 +02:00
2019-07-26 09:14:05 +02:00
2019-09-16 08:22:25 +02:00
2019-10-11 18:21:13 +02:00