[PATCH] em28xx: test

xiaopeitux
2026-01-09T07:56:21Z

From: Pei Xiao <xiaopei01@kylinos.cn>

#syz test
---
drivers/media/usb/em28xx/em28xx-video.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c
index 2dfa3242a7ab..0c925931671f 100644
--- a/drivers/media/usb/em28xx/em28xx-video.c
+++ b/drivers/media/usb/em28xx/em28xx-video.c
@@ -2899,6 +2899,7 @@ static int em28xx_v4l2_init(struct em28xx *dev)
err:
dev->v4l2 = NULL;
kref_put(&v4l2->ref, em28xx_free_v4l2);
+ dev->media_dev = NULL;
mutex_unlock(&dev->lock);
return ret;
}
--
2.25.1