aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPrashanth K <[email protected]>2025-02-12 10:08:40 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-19 14:18:41 +0000
commit17c2c87c37862c3e95b55f660681cc6e8d66660e (patch)
treedf7d9722b42c97e9e5cf82f347c36d137abe882d /net/unix/af_unix.c
parentusb: atm: cxacru: fix a flaw in existing endpoint checks (diff)
downloadkernel-17c2c87c37862c3e95b55f660681cc6e8d66660e.tar.gz
kernel-17c2c87c37862c3e95b55f660681cc6e8d66660e.zip
usb: gadget: u_ether: Set is_suspend flag if remote wakeup fails
Currently while UDC suspends, u_ether attempts to remote wakeup the host if there are any pending transfers. However, if remote wakeup fails, the UDC remains suspended but the is_suspend flag is not set. And since is_suspend flag isn't set, the subsequent eth_start_xmit() would queue USB requests to suspended UDC. To fix this, bail out from gether_suspend() only if remote wakeup operation is successful. Cc: stable <[email protected]> Fixes: 0a1af6dfa077 ("usb: gadget: f_ecm: Add suspend/resume and remote wakeup support") Signed-off-by: Prashanth K <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions