OSDN Git Service

brcmfmac: Fix possible race-condition.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 6 Mar 2015 17:40:40 +0000 (18:40 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 28 Apr 2015 16:49:36 +0000 (00:49 +0800)
commit69bd4f61c059c8841e93f8b7e7b6d166583bb47f
tree012d71b159b24306a7af01e26e0601c878e4c247
parent4c3b0901a20b1cbc142f469de5ac0f02b989c523
brcmfmac: Fix possible race-condition.

SDIO is using a "shared" variable to handoff ctl frames to DPC
and to see when they are done. In a timeout situation this can
lead to erroneous situation where DPC started to handle the ctl
frame while the timeout expired. This patch will fix this by
adding locking around the shared variable.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
drivers/net/wireless/brcm80211/brcmfmac/sdio.c