linux/drivers/media/usb/dvb-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
..
a800.c
af9005-fe.c
af9005-remote.c
af9005-script.h
af9005.c
af9005.h
az6027.c media: dvb-usb: az6027: fix three null-ptr-deref in az6027_i2c_xfer() 2023-06-09 10:32:23 +02:00
az6027.h
cinergyT2-core.c
cinergyT2-fe.c
cinergyT2.h
cxusb-analog.c media: Prefer designated initializers over memset for subdev pad ops 2023-05-24 17:36:44 +01:00
cxusb.c
cxusb.h
dib07x0.h
dib0700_core.c
dib0700_devices.c
dib0700.h
dibusb-common.c
dibusb-mb.c
dibusb-mc-common.c
dibusb-mc.c
dibusb.h
digitv.c media: dvb-usb: digitv: fix null-ptr-deref in digitv_i2c_xfer() 2023-06-09 10:32:23 +02:00
digitv.h
dtt200u-fe.c
dtt200u.c
dtt200u.h
dtv5100.c
dtv5100.h
dvb-usb-common.h
dvb-usb-dvb.c
dvb-usb-firmware.c
dvb-usb-i2c.c
dvb-usb-init.c
dvb-usb-remote.c
dvb-usb-urb.c
dvb-usb.h
dw2102.c media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address 2023-06-09 10:32:23 +02:00
dw2102.h
gp8psk.c
gp8psk.h
Kconfig
m920x.c
m920x.h
Makefile
nova-t-usb2.c
opera1.c
pctv452e.c
technisat-usb2.c
ttusb2.c
ttusb2.h
umt-010.c
usb-urb.c
vp702x-fe.c
vp702x.c
vp702x.h
vp7045-fe.c
vp7045.c
vp7045.h