mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
V4L/DVB: unlock on error path
If we return directly here then we miss out on some mutex_unlock()s Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
0f63a14d35
commit
590a58d180
1 changed files with 2 additions and 1 deletions
|
|
@ -822,7 +822,8 @@ static int fimc_m2m_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
|||
} else {
|
||||
v4l2_err(&ctx->fimc_dev->m2m.v4l2_dev,
|
||||
"Wrong buffer/video queue type (%d)\n", f->type);
|
||||
return -EINVAL;
|
||||
ret = -EINVAL;
|
||||
goto s_fmt_out;
|
||||
}
|
||||
|
||||
pix = &f->fmt.pix;
|
||||
|
|
|
|||
Loading…
Reference in a new issue