From: Guennadi Liakhovetski Date: Fri, 18 Jun 2010 07:20:56 +0000 (-0300) Subject: V4L/DVB: sh_mobile_ceu_camera: fix debugging message X-Git-Tag: v2.6.36-rc1~582^2~241 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e53a48053f5612415a04375a6562e63a771d7cc3;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git V4L/DVB: sh_mobile_ceu_camera: fix debugging message 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 Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index 961bfa2..d40b1e0 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c @@ -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;