linux/drivers/media/usb
Wei Chen 5e56e3d5eb media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address
[ Upstream commit a3fd1ef27a ]

In su3000_read_mac_address, if i2c_transfer fails to execute two
messages, array mac address will not be initialized. Without handling
such error, later in function dvb_usb_adapter_dvb_init, proposed_mac
is accessed before initialization.

Fix this error by returning a negative value if message execution fails.

Link: https://lore.kernel.org/linux-media/20230328124416.560889-1-harperchen1110@gmail.com
Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:32:23 +02:00
..
airspy
as102
au0828
b2c2 media: flexcop-usb: fix endpoint type check 2022-09-28 11:11:42 +02:00
cpia2 media: cpia2: fix control-message timeouts 2022-01-27 11:02:55 +01:00
cx231xx
dvb-usb media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address 2023-06-09 10:32:23 +02:00
dvb-usb-v2 media: dvb-usb-v2: rtl28xxu: fix null-ptr-deref in rtl28xxu_i2c_xfer 2023-06-09 10:32:23 +02:00
em28xx media: Revert "media: em28xx: add missing em28xx_close_extension" 2022-04-08 14:24:02 +02:00
go7007 media: usb: go7007: s2250-board: fix leak in probe() 2022-04-08 14:23:17 +02:00
gspca
hackrf
hdpvr media: hdpvr: fix error value returns in hdpvr_read 2022-08-17 14:23:23 +02:00
msi2500
pvrusb2 media: pvrusb2: fix memory leak in pvr_probe 2022-09-05 10:30:07 +02:00
pwc
s2255 media: s2255: fix control-message timeouts 2022-01-27 11:02:55 +01:00
siano media: usb: siano: Fix use after free bugs caused by do_submit_urb 2023-03-10 09:39:46 +01:00
stk1160 media: stk1160: If start stream fails, return buffers with VB2_BUF_STATE_QUEUED 2022-04-08 14:23:20 +02:00
stkwebcam
tm6000 media: tm6000: Avoid card name truncation 2021-11-18 19:16:29 +01:00
ttusb-budget
ttusb-dec media: ttusb-dec: avoid release of non-acquired mutex 2021-11-18 19:16:27 +01:00
usbtv
uvc media: uvcvideo: Fix race condition with usb_kill_urb 2023-03-11 13:57:39 +01:00
zr364xx
Kconfig
Makefile