Files
linux/drivers/tty/serial
Adam Ford c9e709dece 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 12:18:08 +01:00
..
2015-11-20 16:19:54 -08:00
2016-02-06 22:16:21 -08:00
2014-06-19 13:04:52 -07:00
2019-01-13 10:03:50 +01:00