brcmfmac: do not reconfigure refill rx on 0-length packet.
authorHante Meuleman <meuleman@broadcom.com>
Wed, 2 Jan 2013 14:22:38 +0000 (15:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 7 Jan 2013 20:16:55 +0000 (15:16 -0500)
commit0429a6fa6be9489bf451e9fcc0f97341e4a356b6
tree4a439524b87e322d534a6c729498a93e486f7e9f
parent637ccc27f46f2232267e689b6f8eb744f78f4810
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: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/usb.c