]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb-usb: fix uninit-value in vp702x_read_mac_addr
authorDongliang Mu <mudongliangabcd@gmail.com>
Fri, 25 Jun 2021 05:59:04 +0000 (07:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Sep 2021 07:47:31 +0000 (09:47 +0200)
commitf1b17c8b27883758e11757d1355037f936baed4f
tree1c6966cbf436b06b3b7a52e3674e39ab4478f55a
parent8406eb828ae735348bfaff533d35f012ab69e057
media: dvb-usb: fix uninit-value in vp702x_read_mac_addr

[ Upstream commit 797c061ad715a9a1480eb73f44b6939fbe3209ed ]

If vp702x_usb_in_op fails, the mac address is not initialized.
And vp702x_read_mac_addr does not handle this failure, which leads to
the uninit-value in dvb_usb_adapter_dvb_init.

Fix this by handling the failure of vp702x_usb_in_op.

Fixes: 8ebf4aebc2dd ("[media] dvb-usb: move it to drivers/media/usb/dvb-usb")
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/dvb-usb/vp702x.c