diff options
| author | 2020-11-27 07:40:21 +0100 | |
|---|---|---|
| committer | 2020-11-27 07:40:21 +0100 | |
| commit | d0ac1a26ed5943127cb0156148735f5f52a07075 (patch) | |
| tree | 3a850481ba602979b2111a3e3d14ae821e498f5b /include/uapi/linux/errqueue.h | |
| parent | media: lirc: fix lirc.h documentation generation (diff) | |
media: gp8psk: initialize stats at power control logic
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>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
