projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15c88fa
)
[media] Fix double free of video_device in mem2mem_testdev
author
Pawel Osciak
<pawel@osciak.com>
Sun, 16 Jan 2011 19:22:20 +0000
(16:22 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 2 Feb 2011 12:42:48 +0000
(10:42 -0200)
video_device is already being freed in video_device.release callback on
release.
Signed-off-by: Pawel Osciak <pawel@osciak.com>
Reported-by: Roland Kletzing <devzero@web.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/mem2mem_testdev.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/mem2mem_testdev.c
b/drivers/media/video/mem2mem_testdev.c
index c179041d91f8a3d214c56648473e469f3c516a39..e7e717800ee26f5beca36d03cded34d27b76c478 100644
(file)
--- a/
drivers/media/video/mem2mem_testdev.c
+++ b/
drivers/media/video/mem2mem_testdev.c
@@
-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);