exynos-linux-stable/include/linux/gpio
Krzysztof Kozlowski c4c41610a3 gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB
[ Upstream commit c5510b8dafce5f3f5a039c9b262ebcae0092c462 ]

If CONFIG_GPOILIB is not set, the stub of gpio_to_desc() should return
the same type of error as regular version: NULL.  All the callers
compare the return value of gpio_to_desc() against NULL, so returned
ERR_PTR would be treated as non-error case leading to dereferencing of
error value.

Fixes: 79a9becda8 ("gpiolib: export descriptor-based GPIO interface")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:34:25 +01:00
..
consumer.h gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB 2019-12-05 15:34:25 +01:00
driver.h treewide: remove redundant #include <linux/kconfig.h> 2016-10-11 15:06:33 -07:00
machine.h gpiolib: Add support for removing registered consumer lookup table 2015-07-21 09:21:40 +02:00