android_kernel_samsung_a7y1.../include/linux/gpio
Krzysztof Kozlowski dab8590825 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: 79a9becda894 ("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>
2020-04-07 12:41:38 +02:00
..
consumer.h gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB 2020-04-07 12:41:38 +02:00
driver.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
machine.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30