Message ID | E1kmHBh-009CER-0L@www.linuxtv.org |
---|---|
State | Accepted |
Commit | e469d0b09a19496e1972a20974bbf55b728151eb |
Headers | show |
Series | [git:media_tree/master] media: gspca: Fix memory leak in probe | expand |
diff --git a/drivers/media/usb/gspca/gspca.c b/drivers/media/usb/gspca/gspca.c index c295f642d352..158c8e28ed2c 100644 --- a/drivers/media/usb/gspca/gspca.c +++ b/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;