Files
i2som-imx-linux/include/linux
Krzysztof Kozlowski 06f464df98 gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB
[ Upstream commit c5510b8daf ]

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 09:20:15 +01:00
..
2019-04-20 09:16:05 +02:00
2019-10-05 13:10:03 +02:00
2019-07-03 13:14:48 +02:00
2019-08-09 17:52:28 +02:00
2019-11-24 08:19:14 +01:00
2019-05-31 06:46:18 -07:00
2019-10-17 13:45:42 -07:00
2019-06-11 12:20:52 +02:00
2019-11-10 11:27:54 +01:00
2019-04-17 08:38:45 +02:00
2019-06-17 19:51:56 +02:00