Skip to content

Commit

Permalink
[media] m5mols: Fix typo in get_fmt callback
Browse files Browse the repository at this point in the history
The check of return value from __find_format() was inverted
by mistake. This patch fixes regression introduced in commit
5565a2a [media] m5mols: Protect driver data with a mutex

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Jan 6, 2013
1 parent ac706bf commit 12861dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/i2c/m5mols/m5mols_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static int m5mols_get_fmt(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh,
mutex_lock(&info->lock);

format = __find_format(info, fh, fmt->which, info->res_type);
if (!format)
if (format)
fmt->format = *format;
else
ret = -EINVAL;
Expand Down

0 comments on commit 12861dc

Please sign in to comment.