brcmfmac: block the correct flowring when backup queue overflow
authorFranky Lin <frankyl@broadcom.com>
Thu, 20 Aug 2015 20:06:06 +0000 (22:06 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Aug 2015 12:32:29 +0000 (15:32 +0300)
commitb02bf1932a4855dc860ed20cdab94f1ea9b1c56f
treede8cd6fb44bc9fac7218c754a5f785c5e16e1ab1
parent39504a2d21adde4748b5ce8c057e09edf3fe17bb
brcmfmac: block the correct flowring when backup queue overflow

brcmf_flowring_block blocks the last active flowring under the same
interface instead of the one provided by caller. This could lead to a
dead lock of netif stop if there are more than one flowring under the
interface and the traffic is high enough so brcmf_flowring_enqueue can
not unblock the ring right away.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/flowring.c