tmp_suning_uos_patched/drivers/media
Mauro Carvalho Chehab 2b56f16e34 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:56:52 +01:00
..
cec media: pulse8-cec: add support for FW v10 and up 2020-12-01 16:20:02 +01:00
common media: siano: fix memory leak of debugfs members in smsdvb_hotplug 2020-12-30 11:53:22 +01:00
dvb-core media fixes for v5.9-rc7 2020-09-24 09:05:04 -07:00
dvb-frontends media: dvb-frontends/drxk_hard.c: fix uninitialized variable warning 2020-10-08 14:15:14 +02:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: tvp5150: Fix wrong return value of tvp5150_parse_dt() 2020-12-30 11:53:31 +01:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc
pci media: ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE 2020-12-30 11:54:05 +01:00
platform media: venus: put dummy vote on video-mem path after last session release 2020-12-30 11:53:13 +01:00
radio Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
rc media: sunxi-cir: ensure IR is handled when it is continuous 2020-12-30 11:54:04 +01:00
spi
test-drivers media: vidtv: fix some warnings 2020-12-08 08:15:49 +01:00
tuners Linux 5.9-rc4 2020-09-07 16:13:06 +02:00
usb media: gp8psk: initialize stats at power control logic 2021-01-06 14:56:52 +01:00
v4l2-core media: v4l2-fwnode: Return -EINVAL for invalid bus-type 2020-12-30 11:53:11 +01:00
Kconfig
Makefile