kernel_samsung_a53x/drivers/media/usb
Mauro Carvalho Chehab bf52c0db13 media: dw2102: fix a potential buffer overflow
commit 1c73d0b29d04bf4082e7beb6a508895e118ee30d upstream.

As pointed by smatch:
	 drivers/media/usb/dvb-usb/dw2102.c:802 su3000_i2c_transfer() error: __builtin_memcpy() '&state->data[4]' too small (64 vs 67)

That seemss to be due to a wrong copy-and-paste.

Fixes: 0e148a522b84 ("media: dw2102: Don't translate i2c read into write")

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:42 +01:00
..
airspy
as102
au0828
b2c2
cpia2
cx231xx
dvb-usb media: dw2102: fix a potential buffer overflow 2024-11-19 14:19:42 +01:00
dvb-usb-v2
em28xx
go7007
gspca
hackrf
hdpvr
msi2500
pvrusb2
pwc
s2255 media: s2255: Use refcount_t instead of atomic_t for num_channels 2024-11-19 14:19:40 +01:00
siano
stk1160
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv
uvc
zr364xx
Kconfig
Makefile