aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorWei Chen <[email protected]>2023-03-28 13:44:16 +0100
committerMauro Carvalho Chehab <[email protected]>2023-05-14 06:30:11 +0100
commita3fd1ef27aa686d871cefe207bd6168c4b0cd29e (patch)
tree70445d85b9df22dcb73d424825d6795243c7dfed /lib/mpi/mpiutil.c
parent9ded5bd2a49ce3015b7c936743eec0a0e6e11f0c (diff)
media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address
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/[email protected] Signed-off-by: Wei Chen <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions