linux/drivers/media/usb
Mauro Carvalho Chehab 28a29e3a65 media: gp8psk: initialize stats at power control logic
commit d0ac1a26ed5943127cb0156148735f5f52a07075 upstream.

As reported on:
	https://lore.kernel.org/linux-media/20190627222020.45909-1-willemdebruijn.kernel@gmail.com/

if gp8psk_usb_in_op() returns an error, the status var is not
initialized. Yet, this var is used later on, in order to
identify:
	- if the device was already started;
	- if firmware has loaded;
	- if the LNBf was powered on.

Using status = 0 seems to ensure that everything will be
properly powered up.

So, instead of the proposed solution, let's just set
status = 0.

Reported-by: syzbot <syzkaller@googlegroups.com>
Reported-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-06 14:48:38 +01:00
..
airspy
as102
au0828
b2c2
cpia2
cx231xx
dvb-usb media: gp8psk: initialize stats at power control logic 2021-01-06 14:48:38 +01:00
dvb-usb-v2
em28xx
go7007
gspca media: gspca: Fix memory leak in probe 2020-12-30 11:51:31 +01:00
hackrf
hdpvr
msi2500 media: msi2500: assign SPI bus number dynamically 2020-12-30 11:51:00 +01:00
pulse8-cec
pvrusb2
pwc
rainshadow-cec
s2255
siano
stk1160
stkwebcam
tm6000 media: tm6000: Fix sizeof() mismatches 2020-12-30 11:51:07 +01:00
ttusb-budget
ttusb-dec
usbtv
usbvision
uvc
zr364xx
Kconfig
Makefile