mbox series

[0/2] media: streamzap: fix issues with the implementation of usb driver callbacks

Message ID 20250113105132.275-1-m.masimov@mt-integration.ru
Headers show
Series media: streamzap: fix issues with the implementation of usb driver callbacks | expand

Message

Murad Masimov Jan. 13, 2025, 10:51 a.m. UTC
These patches fix two URB-handling related problems in streamzap driver.
The first one fixes a race condition that leads to a kernel panic as
reported by Syzkaller [1]. The second patch prevents bugs by ensuring
that data received by the driver is processed only if URB status is 0.
It also complies with how other similar usb drivers are written.

[1]: https://syzkaller.appspot.com/bug?extid=34008406ee9a31b13c73

Murad Masimov (2):
  media: streamzap: fix race between device disconnection and urb callback
  media: streamzap: prevent processing IR data on URB failure

 drivers/media/rc/streamzap.c | 70 ++++++++++++++++++++----------------
 1 file changed, 39 insertions(+), 31 deletions(-)

--
2.39.2