mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
net: mctp: usb: don't fail mctp_usb_rx_queue on a deferred submission
[ Upstream commit881a3113b7] In the ndo_open path, a deferred queue open will report a failure, and so the netdev will not be ndo_stop()ed, leaving us with the rx_retry work potentially pending. Don't report a deferred queue as an error, as we are still operational. This means we use the ndo_stop() path for future cleanup, which handles rx_retry_work cancellation. Fixes:0791c0327a("net: mctp: Add MCTP USB transport driver") Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Link: https://patch.msgid.link/20260608-dev-mctp-usb-rx-requeue-v2-2-29a3aa507609@codeconstruct.com.au Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9c46f3ee18
commit
6c75ee4d1d
@@ -154,7 +154,7 @@ err_retry:
|
||||
if (!mctp_usb->rx_stopped)
|
||||
schedule_delayed_work(&mctp_usb->rx_retry_work, RX_RETRY_DELAY);
|
||||
spin_unlock_irqrestore(&mctp_usb->rx_lock, flags);
|
||||
return rc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void mctp_usb_in_complete(struct urb *urb)
|
||||
|
||||
Reference in New Issue
Block a user