Thread (8 messages) flat view 8 messages, 4 authors, 9h ago

Re: [PATCH net-next v2] ch9200: do return USB errors from control_write()

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-09-15 21:54:09
Also in: linux-usb, lkml

On Tue, Sep 15, 2026 at 09:58:04PM +0300, Sergey Shtylyov wrote:
Compared with control_read(), control_write() looks really strange:
it ignores any errors returned by usb_control_msg(), always returning
0 instead, despite overriding a positive result of usb_control_msg()
(indicating short transfer) to -EINVAL before doing that. Drop that
dubious *return* and propagate USB errors to the callers...

Signed-off-by: Sergey Shtylyov <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help