linux/drivers/media
Mauro Carvalho Chehab fd4f2a5151 media: gp8psk: initialize stats at power control logic
commit d0ac1a26ed 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:45:00 +01:00
..
cec cec-api: prevent leaking memory through hole in structure 2020-09-03 11:24:21 +02:00
common media: siano: fix memory leak of debugfs members in smsdvb_hotplug 2020-12-30 11:25:56 +01:00
dvb-core media: don't drop front-end reference count for ->detach 2019-10-05 13:10:05 +02:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2020-10-01 13:14:37 +02:00
firewire media: firewire: fix memory leak 2020-10-30 10:38:26 +01:00
i2c media: max2175: fix max2175_set_csm_mode() error code 2020-12-30 11:25:57 +01:00
mmc
pci media: ipu3-cio2: Make the field on subdev format V4L2_FIELD_NONE 2020-12-30 11:26:07 +01:00
platform media: mtk-vcodec: add missing put_device() call in mtk_vcodec_release_dec_pm() 2020-12-30 11:25:53 +01:00
radio media: si470x-i2c: Move free() past last use of 'radio' 2020-02-05 14:43:40 +00:00
rc media: sunxi-cir: ensure IR is handled when it is continuous 2020-12-30 11:26:07 +01:00
spi media: cxd2880-spi: fix probe when dvb_attach fails 2019-12-13 08:52:23 +01:00
tuners media: tuner-simple: fix regression in simple_set_radio_freq 2020-10-29 09:55:01 +01:00
usb media: gp8psk: initialize stats at power control logic 2021-01-06 14:45:00 +01:00
v4l2-core media: v4l2-mem2mem.c: fix broken links 2020-03-11 14:15:03 +01:00
Kconfig
Makefile
media-device.c media: mc-device.c: fix memleak in media_device_register_entity 2020-10-01 13:14:23 +02:00
media-devnode.c
media-entity.c