Thread (2 messages) read the whole thread 2 messages, 2 authors, 2021-06-21

Re: [PATCH] usb: class: cdc-wdm: return the correct errno code

From: Oliver Neukum <oneukum@suse.com>
Date: 2021-06-21 13:34:55
Also in: lkml

Am Montag, den 21.06.2021, 21:24 +0800 schrieb Junlin Yang:
From: Junlin Yang <redacted>

The "rv" is initialized to "-ENOMEM", because "rv" is re-assigned to
"-EINVAL", when kmalloc & usb_alloc_urb failed, the return value
should
return "-ENOMEM" rather than "-EINVAL",so the "rv" assignment is
placed
in the position where usb_endpoint_is_int_in is false.

Signed-off-by: Junlin Yang <redacted>
Acked-by: Oliver Neukum <oneukum@suse.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help