The patch number 11252 was added via Mauro Carvalho Chehab <[email protected]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <[email protected]>

------

From: Mauro Carvalho Chehab  <[email protected]>
merge: http://linuxtv.org/hg/~mkrufky/tuner


Signed-off-by: Mauro Carvalho Chehab <[email protected]>


---

 linux/drivers/media/video/tuner-core.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -r 2adf4a837334 -r d6aeae810c55 linux/drivers/media/video/tuner-core.c
--- a/linux/drivers/media/video/tuner-core.c    Sat Mar 28 06:55:35 2009 -0300
+++ b/linux/drivers/media/video/tuner-core.c    Sun Mar 29 04:37:46 2009 -0300
@@ -365,7 +365,8 @@ static void set_type(struct i2c_client *
        }
 
        t->type = type;
-       t->config = new_config;
+       /* prevent invalid config values */
+       t->config = ((new_config >= 0) && (new_config < 256)) ? new_config : 0;
        if (tuner_callback != NULL) {
                tuner_dbg("defining GPIO callback\n");
                t->fe.callback = tuner_callback;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d6aeae810c5595a52be28ca5e29cbd1924607dd8

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to