Re: [syzbot] [media?] INFO: trying to register non-static key in as102_dvb_dmx_start_feed

Edward Adam Davis
2026-03-26T12:15:38Z

#syz test

diff --git a/drivers/media/usb/as102/as102_drv.c b/drivers/media/usb/as102/as102_drv.c
index 6b1d3528a0a7..1823f0ca44df 100644
--- a/drivers/media/usb/as102/as102_drv.c
+++ b/drivers/media/usb/as102/as102_drv.c
@@ -344,9 +344,6 @@ int as102_dvb_register(struct as102_dev_t *as102_dev)
/* init bus mutex for token locking */
mutex_init(&as102_dev->bus_adap.lock);

- /* init start / stop stream mutex */
- mutex_init(&as102_dev->sem);
-
/*
* try to load as102 firmware. If firmware upload failed, we'll be
* able to upload it later.
diff --git a/drivers/media/usb/as102/as102_usb_drv.c b/drivers/media/usb/as102/as102_usb_drv.c
index 8e480ab78f9b..a19b156b635b 100644
--- a/drivers/media/usb/as102/as102_usb_drv.c
+++ b/drivers/media/usb/as102/as102_usb_drv.c
@@ -385,6 +385,8 @@ static int as102_usb_probe(struct usb_interface *intf,
__func__, ret);
goto failed;
}
+ /* init start / stop stream mutex */
+ mutex_init(&as102_dev->sem);

pr_info("%s: device has been detected\n", DRIVER_NAME);