]> git.baikalelectronics.ru Git - kernel.git/commit
media: ov7251: fix mutex lock unbalance
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 13 May 2022 16:06:40 +0000 (18:06 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:54:26 +0000 (09:54 +0200)
commit44ab85170342c67b5f46fbaa18915e0477b96e60
tree18e64f9575e974bd3238ca29f10fdc01d2324aee
parent08951d8f7044e508421db84937d876a77ef50948
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>
drivers/media/i2c/ov7251.c