[media] drxj: set_param_parameters array is too short
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Feb 2016 16:40:14 +0000 (13:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 23 Feb 2016 10:24:46 +0000 (07:24 -0300)
Fixes this smatch warning:
drivers/media/dvb-frontends/drx39xyj/drxj.c:4151 drxj_dap_scu_atomic_read_write_block() error: buffer overflow 'set_param_parameters' 15 <= 17

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/drx39xyj/drxj.c

index b28b5787b39aa67c396285cbdc4c37b78cfb7c43..51715421bc4fbbebcabda60edfe5d0086ad16622 100644 (file)
@@ -4131,7 +4131,7 @@ int drxj_dap_scu_atomic_read_write_block(struct i2c_device_addr *dev_addr, u32 a
 {
        struct drxjscu_cmd scu_cmd;
        int rc;
-       u16 set_param_parameters[15];
+       u16 set_param_parameters[18];
        u16 cmd_result[15];
 
        /* Parameter check */
This page took 0.029762 seconds and 5 git commands to generate.