linux/drivers/media/pci
Arnd Bergmann 69d3973af1 [media] ttpci: address stringop overflow warning
gcc-7.0.1 warns about old code in ttpci:

In file included from drivers/media/pci/ttpci/av7110.c:63:0:
In function 'irdebi.isra.2',
    inlined from 'start_debi_dma' at drivers/media/pci/ttpci/av7110.c:376:3,
    inlined from 'gpioirq' at drivers/media/pci/ttpci/av7110.c:659:3:
drivers/media/pci/ttpci/av7110_hw.h:406:3: warning: 'memcpy': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   memcpy(av7110->debi_virt, (char *) &res, count);
In function 'irdebi.isra.2',
    inlined from 'start_debi_dma' at drivers/media/pci/ttpci/av7110.c:376:3,
    inlined from 'gpioirq' at drivers/media/pci/ttpci/av7110.c:668:3:
drivers/media/pci/ttpci/av7110_hw.h:406:3: warning: 'memcpy': specified size between 18446744071562067968 and 18446744073709551615 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   memcpy(av7110->debi_virt, (char *) &res, count);

Apparently, 'count' can be negative here, which will then get turned
into a giant size argument for memcpy. Changing the sizes to 'unsigned
int' instead seems safe as we already check for maximum sizes, and it
also simplifies the code a bit.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-02-08 11:46:07 -02:00
..
b2c2 [media] b2c2: fix spelling mistake: "Contunuity" -> "Continuity" 2017-01-30 15:45:34 -02:00
bt8xx [media] bt8xx: Delete unnecessary variable initialisations in ca_send_message() 2017-02-03 09:20:11 -02:00
cobalt [media] cobalt: fix spelling mistake: "Celcius" -> "Celsius" 2017-01-30 15:45:06 -02:00
cx18 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
cx88 [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
cx23885 [media] cx23885: attach md88ds3103 driver via i2c_client for DVBSky S952 2017-02-03 11:48:55 -02:00
cx25821 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
ddbridge [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
dm1105 [media] media: fix dm1105.c build error 2017-01-31 07:57:14 -02:00
dt3155 [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
ivtv [media] ivtv: mark DVB "borrowed" ioctls as deprecated 2017-02-03 07:08:24 -02:00
mantis [media] mantis_dvb: fix some error codes in mantis_dvb_init() 2017-02-03 14:50:35 -02:00
meye [media] media: pci: meye: set error code on failures 2017-02-03 08:01:30 -02:00
netup_unidvb [media] netup_unidvb: use module_pci_driver 2016-11-22 16:30:03 -02:00
ngene [media] ngene: drop ngene_link_reset() 2017-02-03 11:35:59 -02:00
pluto2 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt1 [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
pt3 ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
saa7134 [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
saa7146 [media] include/media: move driver interface headers to a separate dir 2015-11-17 06:57:29 -02:00
saa7164 [media] saa7164: "first image" should be "second image" in error message 2017-02-03 11:19:07 -02:00
smipcie [media] rc-main: assign driver type during allocation 2017-01-30 13:59:57 -02:00
solo6x10 [media] solo6x10: use designated initializers 2017-01-31 07:43:53 -02:00
sta2x11 [media] media: pci: constify vb2_ops structure 2017-02-03 14:23:39 -02:00
ttpci [media] ttpci: address stringop overflow warning 2017-02-08 11:46:07 -02:00
tw68 [media] tw68: don't break long lines 2016-10-21 09:29:44 -02:00
tw686x [media] tw686x: silent -Wformat-security warning 2017-02-03 07:20:19 -02:00
tw5864 [media] tw5864: crop picture width to 704 2016-10-24 18:02:54 -02:00
zoran [media] zoran: Clean up file handle in open() error path 2017-01-31 07:44:51 -02:00
Kconfig [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00
Makefile [media] pci: Add tw5864 driver 2016-08-24 11:17:22 -03:00