summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-22 17:40:14 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-23 11:24:46 +0100
commit54c8cdd4abb06ca5d0aa3470a13e4f9f21364477 (patch)
tree2531b8aa79d0767604801b7f36e3bbc15018cd28 /drivers/media/dvb-frontends
parent[media] dib9000: read16/write16 could return an error code (diff)
downloadlinux-54c8cdd4abb06ca5d0aa3470a13e4f9f21364477.tar.xz
linux-54c8cdd4abb06ca5d0aa3470a13e4f9f21364477.zip
[media] drxj: set_param_parameters array is too short
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>
Diffstat (limited to 'drivers/media/dvb-frontends')
-rw-r--r--drivers/media/dvb-frontends/drx39xyj/drxj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drxj.c b/drivers/media/dvb-frontends/drx39xyj/drxj.c
index b28b5787b39a..51715421bc4f 100644
--- a/drivers/media/dvb-frontends/drx39xyj/drxj.c
+++ b/drivers/media/dvb-frontends/drx39xyj/drxj.c
@@ -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 */