1
0
Fork 0
alistair23-linux/drivers/media/usb/tm6000
Colin Ian King 06a3c11c17 media: tm6000: Fix sizeof() mismatches
[ Upstream commit a08ad6339e ]

The are two instances of sizeof() being used incorrectly. The
sizeof(void *) is incorrect because urb_buffer is a char ** pointer,
fix this by using sizeof(*dev->urb_buffer).  The sizeof(dma_addr_t *)
is incorrect, it should be sizeof(*dev->urb_dma), which is a dma_addr_t
and not a dma_addr_t *.  This errors did not cause any issues because
it just so happens the sizes are the same.

Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")

Fixes: 16427faf28 ("[media] tm6000: Add parameter to keep urb bufs allocated")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:51:07 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
tm6000-alsa.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
tm6000-cards.c media: Fix various misspellings of disconnected 2019-08-19 12:02:28 -03:00
tm6000-core.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
tm6000-dvb.c media: tm6000: double free if usb disconnect while streaming 2019-08-14 05:07:39 -03:00
tm6000-i2c.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
tm6000-input.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 286 2019-06-05 17:36:37 +02:00
tm6000-regs.h MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
tm6000-stds.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
tm6000-usb-isoc.h MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
tm6000-video.c media: tm6000: Fix sizeof() mismatches 2020-12-30 11:51:07 +01:00
tm6000.h media: media/usb: don't set description in ENUM_FMT 2019-07-22 14:01:05 -04:00