From: Hans Verkuil Date: Tue, 13 Dec 2011 08:44:42 +0000 (-0300) Subject: [media] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe() X-Git-Tag: v3.3-rc1~48^2~80 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2f7a1a2467c01b569d2a7fbf10e8894a3f0e496;p=pandora-kernel.git [media] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe() The function v4l2_device_register() is called too late in vpif_probe(). This meant that vpif_obj.v4l2_dev is accessed before it is initialized which caused a crash. This used to work in the past, but video_register_device() is now actually using the v4l2_dev pointer. Note that vpif_display.c doesn't have this bug, there v4l2_device_register() is called at the beginning of vpif_probe. Signed-off-by: Georgios Plakaris Signed-off-by: Hans Verkuil Acked-by: Manjunath Hadli Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed