Skip to content

Commit

Permalink
brcmsmac: Add missing annotation for brcms_down()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
irenge authored and Kalle Valo committed Apr 15, 2020
1 parent 2fe5efb commit 40fb232
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ int brcms_up(struct brcms_info *wl)
* precondition: perimeter lock has been acquired
*/
void brcms_down(struct brcms_info *wl)
__must_hold(&wl->lock)
{
uint callbacks, ret_val = 0;

Expand Down

0 comments on commit 40fb232

Please sign in to comment.