media: vp7045: do not read uninitialized values if usb transfer fails
authorSean Young <sean@mess.org>
Sun, 10 Nov 2019 10:25:13 +0000 (11:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 14:43:37 +0000 (14:43 +0000)
commit373403c65479168ff6cf9b437447ac1a3eb3beef
tree6437500359ae5a3b733846f8aa627290f4e7620f
parentbb3d4573bc77c3eb39bbae9d69e7d5beaf999a0f
media: vp7045: do not read uninitialized values if usb transfer fails

commit 26cff637121d8bb866ebd6515c430ac890e6ec80 upstream.

It is not a fatal error if reading the mac address or the remote control
decoder state fails.

Reported-by: syzbot+ec869945d3dde5f33b43@syzkaller.appspotmail.com
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/dvb-usb/vp7045.c