Files
linux/drivers
Pan Bian cd63a1c195 usb: return correct errno on failures
In function __wa_xfer_setup_segs(), variable result takes the return
value. Its value should be a negative errno on failures. Because result
may be reassigned in a loop, and its value is guaranteed to be not less
than 0 during the following repeats of the loop. So when the call to
kmalloc() or usb_alloc_urb() fails in the loop, the value of variable
result may be 0 (indicates no error), which is inconsistent with the
execution status. This patch fixes the bug, initializing variable result
with -ENOMEM in the loop.

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
..
2016-11-16 20:46:32 +01:00
2016-09-27 12:33:47 +02:00
2016-11-28 08:34:10 +01:00
2016-11-25 20:57:21 -05:00
2016-11-16 12:39:57 -07:00
2016-09-20 20:57:12 +10:00
2016-11-29 17:36:43 +01:00
2016-11-01 09:04:04 -06:00