Skip to contentSkip to conversation

media: dvb-usb: fix ununit-value in az6027_rc_query

PATCH New Pavel Skripkin 1 participant 1 message Aug 13, 2021 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: dvb-usb: fix ununit-value in az6027_rc_query

Syzbot reported ununit-value bug in az6027_rc_query(). The problem was in missing state pointer initialization. Since this funtion does nothing we can simply initialize state to REMOTE_NO_KEY_PRESSED.

Fixes 76f9a820c867 ("V4L/DVB: AZ6027: Initial import of the driver")
Reported-and-tested-by [email protected]
---
 drivers/media/usb/dvb-usb/az6027.c | 1 +
 1 file changed, 1 insertion(+)
drivers/media/usb/dvb-usb/az6027.c +1 -0
index 1c39b61cde29..86788771175b 100644
@@ -391,6 +391,7 @@ static struct rc_map_table rc_map_az6027_table[] = {
 /* remote control stuff (does not work with my box) */
 static int az6027_rc_query(struct dvb_usb_device *d, u32 *event, int *state)
 {
+	*state = REMOTE_NO_KEY_PRESSED;
 	return 0;
 }
 
Signature · 1 line
2.32.0