V4L/DVB: v4l: mem2mem_testdev: fix g_fmt NULL pointer dereference
authorPawel Osciak <p.osciak@samsung.com>
Tue, 22 Jun 2010 08:38:41 +0000 (05:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Jul 2010 19:50:24 +0000 (16:50 -0300)
commitb6ae906b04113cb73c1ffe9c42fbcdcb074d9f07
tree01ff8392bcd9035b2e9bdad87eb170622a4a7775
parent9c3b10b53875279306d8464fe9b24fa634329fc8
V4L/DVB: v4l: mem2mem_testdev: fix g_fmt NULL pointer dereference

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