media: ccs: Avoid deadlock in ccs_init_state()
The sub-device state lock has been already acquired when ccs_init_state()
is called. Do not try to acquire it again.
Reported-by: David Heidelberg <david@ixit.cz>
Fixes: a88883d120 ("media: ccs: Rely on sub-device state locking")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
7c39f48568
commit
7587fbf5ad
|
|
@ -3080,8 +3080,6 @@ static int ccs_init_state(struct v4l2_subdev *sd,
|
|||
struct v4l2_rect *crop =
|
||||
v4l2_subdev_state_get_crop(sd_state, pad);
|
||||
|
||||
guard(mutex)(&sensor->mutex);
|
||||
|
||||
ccs_get_native_size(ssd, crop);
|
||||
|
||||
fmt->width = crop->width;
|
||||
|
|
|
|||
Loading…
Reference in New Issue