Skip to content

Commit

Permalink
media: ov2659: fix unbalanced mutex_lock/unlock
Browse files Browse the repository at this point in the history
Avoid returning with mutex locked.

Fixes: fa8cb64 ("[media] ov2659: Don't depend on subdev API")

Cc: "Lad, Prabhakar" <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Acked-by: Lad, Prabhakar <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mita authored and mchehab committed Apr 22, 2019
1 parent bccb89c commit 384538b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/ov2659.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ static int ov2659_set_fmt(struct v4l2_subdev *sd,
mf = v4l2_subdev_get_try_format(sd, cfg, fmt->pad);
*mf = fmt->format;
#else
return -ENOTTY;
ret = -ENOTTY;
#endif
} else {
s64 val;
Expand Down

0 comments on commit 384538b

Please sign in to comment.