OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47054a3
)
[media] vivi: Add return code check at vb2_queue_init()
author
Ezequiel Garcia
<elezegarcia@gmail.com>
Mon, 17 Sep 2012 12:49:38 +0000
(09:49 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 27 Sep 2012 07:47:48 +0000
(
04:47
-0300)
This function returns an integer and it's mandatory
to check the return code.
Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/vivi.c
patch
|
blob
|
history
diff --git
a/drivers/media/platform/vivi.c
b/drivers/media/platform/vivi.c
index
c396da1
..
b366b05
100644
(file)
--- a/
drivers/media/platform/vivi.c
+++ b/
drivers/media/platform/vivi.c
@@
-1314,7
+1314,9
@@
static int __init vivi_create_instance(int inst)
q->ops = &vivi_video_qops;
q->mem_ops = &vb2_vmalloc_memops;
- vb2_queue_init(q);
+ ret = vb2_queue_init(q);
+ if (ret)
+ goto unreg_dev;
mutex_init(&dev->mutex);