kernel_optimize_test/drivers/usb/wusbcore
Pan Bian 7faf44bf92 usb: fix improper return value when kzalloc fails
The comment says function wa_nep_queue() should return 0 if ok, and <0
errno code on error. However, its implementation always returns 0, even
if the call to kzalloc() fails. As a result, the return value may be
inconsistent with the execution status, which may mislead the callers.
This patch fixes the bug, returning -ENOMEM when the call to kzalloc()
fails.

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-11-29 17:36:43 +01:00
..
cbaf.c USB: wusbcore: add in missing white space in error message text 2016-09-13 17:24:24 +02:00
crypto.c wusb: fix error return code in wusb_prf() 2016-10-19 15:28:29 +02:00
dev-sysfs.c wusbcore: dev-sysfs: use permission-specific DEVICE_ATTR variants 2016-11-07 10:19:49 +01:00
devconnect.c usb: wusbcore: remove unreachable code 2016-04-19 04:33:15 +09:00
Kconfig
Makefile
mmc.c
pal.c
reservation.c
rh.c
security.c usb: return correct errno code when krealloc fails 2016-11-29 17:36:43 +01:00
wa-hc.c
wa-hc.h
wa-nep.c usb: fix improper return value when kzalloc fails 2016-11-29 17:36:43 +01:00
wa-rpipe.c
wa-xfer.c usb: return correct errno on failures 2016-11-29 17:36:43 +01:00
wusbhc.c wusbcore: wusbhc: use permission-specific DEVICE_ATTR variants 2016-11-07 10:19:49 +01:00
wusbhc.h