linux_dsm_epyc7002/drivers/extcon
Pan Bian 5b11ebedd6 extcon: return error code on failure
Function get_zeroed_page() returns a NULL pointer if there is no enough
memory. In function extcon_sync(), it returns 0 if the call to
get_zeroed_page() fails. The return value 0 indicates success in the
context, which is incosistent with the execution status. This patch
fixes the bug by returning -ENOMEM.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188611

Signed-off-by: Pan Bian <bianpan2016@163.com>
Fixes: a580982f08
Cc: stable <stable@vger.kernel.org>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-01-11 09:11:39 +01:00
..
devres.c
extcon-adc-jack.c
extcon-arizona.c extcon: arizona: Use SoC component pin control functions 2016-12-01 20:18:44 +00:00
extcon-axp288.c
extcon-gpio.c
extcon-max3355.c
extcon-max8997.c
extcon-max14577.c
extcon-max77693.c
extcon-max77843.c
extcon-palmas.c
extcon-qcom-spmi-misc.c
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c
extcon-sm5502.h
extcon-usb-gpio.c extcon: usb-gpio: Add VBUS detection support 2016-11-20 21:22:39 +09:00
extcon.c extcon: return error code on failure 2017-01-11 09:11:39 +01:00
Kconfig
Makefile