mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 10:26:09 +00:00
media: ov7251: fix mutex lock unbalance
As reported by smatch/sparse: drivers/media/i2c/ov7251.c:1381 ov7251_s_stream() warn: inconsistent returns '&ov7251->lock'. Locked on : 1381 Unlocked on: 1377 There's a lock unbalance at this routine, as it keeps the lock on certain errors. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
1b598f413c
commit
4d52db40c7
@ -1378,6 +1378,7 @@ unlock_out:
|
||||
|
||||
err_power_down:
|
||||
pm_runtime_put_noidle(ov7251->dev);
|
||||
mutex_unlock(&ov7251->lock);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user