Files
linux/drivers/tty
Adam Ford 8a6c5274a3 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>
2023-05-15 14:55:10 +09:00
..
2023-05-15 11:10:09 +09:00
2023-05-15 09:59:16 +09:00
2018-05-09 21:14:17 -07:00
2016-03-07 16:11:14 -08:00
2016-02-14 14:36:04 -08:00