brcmsmac: Add missing annotation for brcms_down()
authorJules Irenge <jbi.octave@gmail.com>
Sat, 11 Apr 2020 00:19:29 +0000 (01:19 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 15 Apr 2020 08:44:35 +0000 (11:44 +0300)
commit40fb232c02d1b012c6c84b8c22465d01e20eddf9
treed790c9ad634e38178e0fdbf27aa5a212969fd96c
parent2fe5efb8a475c856cd72a37fd73d82f5b5b563e0
brcmsmac: Add missing annotation for brcms_down()

Sparse reports a warning at brcms_down()

warning: context imbalance in brcms_down()
- unexpected unlock
The root cause is the missing annotation at brcms_down()
Add the missing __must_hold(&wl->lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200411001933.10072-6-jbi.octave@gmail.com
drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c