Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media: gp8psk: initialize stats at power control logic
As reported on: https://lore.kernel.org/linux-media/[email protected]/ 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 <[email protected]> Reported-by: Willem de Bruijn <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information