projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f63a14
)
V4L/DVB: unlock on error path
author
Dan Carpenter
<error27@gmail.com>
Thu, 12 Aug 2010 07:41:58 +0000
(
04:41
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Tue, 28 Sep 2010 01:21:45 +0000
(22:21 -0300)
If we return directly here then we miss out on some mutex_unlock()s
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/s5p-fimc/fimc-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/s5p-fimc/fimc-core.c
b/drivers/media/video/s5p-fimc/fimc-core.c
index b151c7be8a506b18ae1ff544de0ba604f7e05e8f..1beb2263d18ce4df1b97ac6b044bbd4ec57085ca 100644
(file)
--- a/
drivers/media/video/s5p-fimc/fimc-core.c
+++ b/
drivers/media/video/s5p-fimc/fimc-core.c
@@
-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;