OSDN Git Service

atomisp/imx: Fix locking bug on error path
authorAlan Cox <alan@linux.intel.com>
Mon, 20 Mar 2017 14:40:06 +0000 (14:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:04:32 +0000 (08:04 +0100)
commit9bc30b3a7951a2568817a8c8024e6bdc469e305e
treed8e442361b61120cfedf58f2c1d4ecc6ee8be680
parentb8340109400321d1ac23db0ad20a1d7bf17bff04
atomisp/imx: Fix locking bug on error path

This was reported by Dan Carpenter. When we error with an IMX 227 we don't release
the lock and the sensor would then hang.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/i2c/imx/imx.c