V4L/DVB: sh_mobile_ceu_camera: fix debugging message
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Fri, 18 Jun 2010 07:20:56 +0000 (04:20 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 17:05:38 +0000 (14:05 -0300)
With enabled debugging sh_mobile_ceu_camera.c dereferences an invalid or a NULL
pointer. Thanks to James Wang for reporting.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sh_mobile_ceu_camera.c

index 961bfa2fea97eb9f65a5900d36fcc0d181e2ffa2..d40b1e08bcece14da4fb1d1d8f7e8c7f64fab51e 100644 (file)
@@ -1005,7 +1005,7 @@ static int sh_mobile_ceu_get_formats(struct soc_camera_device *icd, unsigned int
                xlate->code     = code;
                xlate++;
                dev_dbg(dev, "Providing format %s in pass-through mode\n",
-                       xlate->host_fmt->name);
+                       fmt->name);
        }
 
        return formats;