> commit: 4d02da97 Merge tag 'net-5.10-rc5' of git://git.kernel.org/.. > git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git Hans says to call v4l2_device_unregister rather than v4l2_device_disconnect. Let's make sure that works. Alan Stern #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4d02da97 Index: usb-devel/drivers/media/usb/gspca/gspca.c =================================================================== --- usb-devel.orig/drivers/media/usb/gspca/gspca.c +++ usb-devel/drivers/media/usb/gspca/gspca.c @@ -1575,6 +1575,7 @@ out: input_unregister_device(gspca_dev->input_dev); #endif v4l2_ctrl_handler_free(gspca_dev->vdev.ctrl_handler); + v4l2_device_unregister(&gspca_dev->v4l2_dev); kfree(gspca_dev->usb_buf); kfree(gspca_dev); return ret;