[media] cx23885: Fix some smatch warnings
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 16:37:06 +0000 (13:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Sep 2016 16:37:06 +0000 (13:37 -0300)
commite837d85c614e8d6e2d93daed972874ea3a8daec7
tree6f33d64cc45ad8ee0a1ea469de2f029946a114d7
parente3ea5e94489bc8c711d422dfa311cfa310553a1b
[media] cx23885: Fix some smatch warnings

Make sure that it won't go past the config buffers

drivers/media/pci/cx23885/cx23885-dvb.c:1733 dvb_register() warn: buffer overflow 'netup_xc5000_config' 2 <= s32max
drivers/media/pci/cx23885/cx23885-dvb.c:1745 dvb_register() warn: buffer overflow 'netup_stv0367_config' 2 <= s32max
drivers/media/pci/cx23885/cx23885-dvb.c:1752 dvb_register() warn: buffer overflow 'netup_xc5000_config' 2 <= s32max

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/cx23885/cx23885-dvb.c
drivers/media/pci/cx23885/cx23885.h