Skip to content

Commit

Permalink
firmware loader: Add sparse annotation
Browse files Browse the repository at this point in the history
Avoid that sparse reports the following warning on __fw_free_buf():

drivers/base/firmware_class.c:230:9: warning: context imbalance in '__fw_free_buf' - unexpected unlock

Signed-off-by: Bart Van Assche <[email protected]>
Acked-by: Ming Lei <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
bvanassche authored and gregkh committed Jan 8, 2014
1 parent 9705710 commit 98233b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/firmware_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ static int fw_lookup_and_allocate_buf(const char *fw_name,
}

static void __fw_free_buf(struct kref *ref)
__releases(&fwc->lock)
{
struct firmware_buf *buf = to_fwbuf(ref);
struct firmware_cache *fwc = buf->fwc;
Expand Down

0 comments on commit 98233b2

Please sign in to comment.