media: i2c: ov08d10: Unlock on error in ov08d10_enum_frame_size()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 1 Feb 2022 13:00:16 +0000 (14:00 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 17 Feb 2022 09:00:21 +0000 (10:00 +0100)
commitcc74074ad9369ef54ba5d3b45edc28e9677911e7
tree62182189cba2433b2b381f98ec7e252136e7dbce
parent24e9edc1527c48dbb42267de5b302414521c05d8
media: i2c: ov08d10: Unlock on error in ov08d10_enum_frame_size()

This error path needs to drop the mutex to avoid a deadlock.

Fixes: 7be91e02ed57 ("media: i2c: Add ov08d10 camera sensor driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov08d10.c