Re: [PATCH] v4l: soc_camera: fix bound checking of mbus_fmt[] index

2010-02-20 Thread Baruch Siach
iakhovetski, Ph.D. > Freelance Open-Source Software Developer > http://www.open-technology.de/ > > > From 00109d655b4b8cf25bc68a215966be810e372e87 Mon Sep 17 00:00:00 2001 > From: Baruch Siach > Date: Fri, 19 Feb 2010 18:09:25 +0100 > Subject: [PATCH] v4l: soc_camera: fix

Re: [PATCH] v4l: soc_camera: fix bound checking of mbus_fmt[] index

2010-02-19 Thread Guennadi Liakhovetski
gt; --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ >From 00109d655b4b8cf25bc68a215966be810e372e87 Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Fri, 19 Feb 2010 18:09:25 +0100 Subject: [PATCH] v4l: soc_camera: fix bound checking of mbus_

[PATCH] v4l: soc_camera: fix bound checking of mbus_fmt[] index

2010-02-17 Thread Baruch Siach
When code <= V4L2_MBUS_FMT_FIXED soc_mbus_get_fmtdesc returns a pointer to mbus_fmt[x], where x < 0. Fix this. Signed-off-by: Baruch Siach --- drivers/media/video/soc_mediabus.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/soc_mediabus.c b/driver