summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorWei Chen <harperchen1110@gmail.com>2023-03-28 13:44:16 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:32:23 +0200
commit5e56e3d5ebeb9d9db5767a60abd804cbcc074db1 (patch)
tree5191abac58023912ff529bea0e29e72bb2e75bef /include/target
parent5240bc8c0c9ae6de6c0d3031f2d1c8658bbcf110 (diff)
downloadlinux-stable-5e56e3d5ebeb9d9db5767a60abd804cbcc074db1.tar.gz
linux-stable-5e56e3d5ebeb9d9db5767a60abd804cbcc074db1.tar.bz2
linux-stable-5e56e3d5ebeb9d9db5767a60abd804cbcc074db1.zip
media: dvb-usb: dw2102: fix uninit-value in su3000_read_mac_address
[ Upstream commit a3fd1ef27aa686d871cefe207bd6168c4b0cd29e ] 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>
Diffstat (limited to 'include/target')
0 files changed, 0 insertions, 0 deletions