Commit 0429a6fa authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville
Browse files

brcmfmac: do not reconfigure refill rx on 0-length packet.

When USB device gets removed rx complete comes with 0-length
packets. Do not refill those packets. In some rare cases it can
cause infinite loop.
Reviewed-by: default avatarArend Van Spriel <>
Reviewed-by: default avatarPieter-Paul Giesberts <>
Signed-off-by: default avatarHante Meuleman <>
Signed-off-by: default avatarArend van Spriel <>
Signed-off-by: default avatarJohn W. Linville <>
parent 637ccc27
......@@ -467,7 +467,11 @@ static void brcmf_usb_rx_complete(struct urb *urb)
} else
brcmf_rx_packet(devinfo->dev, ifidx, skb);
/* zero lenght packets indicate usb "failure". Do not refill */
if (urb->actual_length)
brcmf_usb_rx_refill(devinfo, req);
brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL);
} else {
brcmf_usb_enq(devinfo, &devinfo->rx_freeq, req, NULL);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment