OSDN Git Service

usb: hso: remove bogus check for EINPROGRESS
authorOliver Neukum <oneukum@suse.com>
Wed, 5 Aug 2020 12:07:09 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Aug 2020 00:43:39 +0000 (17:43 -0700)
commitabaf00ff04625275a40e407fc8da04948ae4f95b
tree2b4aa367b7682896b917857054c52e037b90a2dc
parent11c5f6d2f2a8f34f64dfcdec4090d2c17539c2c3
usb: hso: remove bogus check for EINPROGRESS

This check an inherent race. It opens a race where
an error code has already been set or cleared yet
the URB has not been given back. We cannot do
such an optimization and must unlink unconditionally.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c