Commit 0552774d authored by Pawel Osciak's avatar Pawel Osciak Committed by Mauro Carvalho Chehab

[media] Fix double free of video_device in mem2mem_testdev

video_device is already being freed in video_device.release callback on
release.
Signed-off-by: default avatarPawel Osciak <pawel@osciak.com>
Reported-by: default avatarRoland Kletzing <devzero@web.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 15c88fad
......@@ -1011,7 +1011,6 @@ static int m2mtest_remove(struct platform_device *pdev)
v4l2_m2m_release(dev->m2m_dev);
del_timer_sync(&dev->timer);
video_unregister_device(dev->vfd);
video_device_release(dev->vfd);
v4l2_device_unregister(&dev->v4l2_dev);
kfree(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment