brcmfmac: only lock and unlock fws if fws is not null
authorColin Ian King <colin.king@canonical.com>
Wed, 2 Dec 2015 11:45:10 +0000 (11:45 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 11 Dec 2015 11:14:10 +0000 (13:14 +0200)
commitb513cac22ad6527bd85042766afa8eacf1adffbe
treea5faafa90485402b4d2faca288a9798a338a0816
parent133b7326e96031e69fcfb42d6f3040b563ce6464
brcmfmac: only lock and unlock fws if fws is not null

There is a null ptr check for fws to set bcmc_credit_check, however,
there a lock and unlock on fws should only performed if fwts is
also not null to also avoid a potential null pointer deference.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwsignal.c