mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
firmware loader: Add sparse annotation
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]>
This commit is contained in:
parent
9705710e40
commit
98233b21cd
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue