projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c3b10b
)
V4L/DVB: v4l: mem2mem_testdev: fix g_fmt NULL pointer dereference
author
Pawel Osciak
<p.osciak@samsung.com>
Tue, 22 Jun 2010 08:38:41 +0000
(
05:38
-0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 8 Jul 2010 19:50:24 +0000
(16:50 -0300)
Calling g_fmt before s_fmt resulted in a NULL pointer dereference as no
default formats were being selected on probe.
Reported-by: Németh Márton <nm127@freemail.hu>
Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mem2mem_testdev.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/mem2mem_testdev.c
b/drivers/media/video/mem2mem_testdev.c
index
554eaf1
..
10ddecc
100644
(file)
--- a/
drivers/media/video/mem2mem_testdev.c
+++ b/
drivers/media/video/mem2mem_testdev.c
@@
-988,6
+988,9
@@
static int m2mtest_probe(struct platform_device *pdev)
goto err_m2m;
}
+ q_data[V4L2_M2M_SRC].fmt = &formats[0];
+ q_data[V4L2_M2M_DST].fmt = &formats[0];
+
return 0;
err_m2m: