TencentOS-kernel/drivers/media
Mauro Carvalho Chehab 44356a8b33 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-03-16 16:43:53 +08:00
..
cec cec-api: prevent leaking memory through hole in structure 2021-03-16 16:34:50 +08:00
common media: siano: fix memory leak of debugfs members in smsdvb_hotplug 2021-03-16 16:42:53 +08:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2021-03-16 16:29:21 +08:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2021-03-16 16:37:00 +08:00
firewire media: firewire: fix memory leak 2021-03-16 16:39:12 +08:00
i2c media: max2175: fix max2175_set_csm_mode() error code 2021-03-16 16:42:54 +08:00
mc media: mc-device.c: fix memleak in media_device_register_entity 2021-03-16 16:36:31 +08:00
mmc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pci media: ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE 2021-03-16 16:43:23 +08:00
platform media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_enc_pm() 2021-03-16 16:42:46 +08:00
radio Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rc media: sunxi-cir: ensure IR is handled when it is continuous 2021-03-16 16:43:22 +08:00
spi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tuners media: tuner-simple: fix regression in simple_set_radio_freq 2021-03-16 16:38:24 +08:00
usb media: gp8psk: initialize stats at power control logic 2021-03-16 16:43:53 +08:00
v4l2-core media: v4l2-fwnode: Return -EINVAL for invalid bus-type 2021-03-16 16:42:46 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00