mirror of https://gitee.com/openkylin/linux.git
[media] gspca: Don't use video_device_node_name in v4l2_device release handler
When the v4l2_device release handler gets called the kobject under vdev->dev has already been released, so we cannot use kobject_name on it (which video_device_node_name does). Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
872099e806
commit
0dddf83869
|
@ -1274,9 +1274,6 @@ static void gspca_release(struct v4l2_device *v4l2_device)
|
|||
struct gspca_dev *gspca_dev =
|
||||
container_of(v4l2_device, struct gspca_dev, v4l2_dev);
|
||||
|
||||
PDEBUG(D_PROBE, "%s released",
|
||||
video_device_node_name(&gspca_dev->vdev));
|
||||
|
||||
v4l2_ctrl_handler_free(gspca_dev->vdev.ctrl_handler);
|
||||
v4l2_device_unregister(&gspca_dev->v4l2_dev);
|
||||
kfree(gspca_dev->usb_buf);
|
||||
|
|
Loading…
Reference in New Issue