[media] s5p-mfc: fix memory leak in s5p_mfc_remove()
s5p_mfc_remove() fails to release encoder and decoder video devices. Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
7d48ea9f54
commit
6610ef0827
|
@ -1318,6 +1318,8 @@ static int s5p_mfc_remove(struct platform_device *pdev)
|
|||
|
||||
video_unregister_device(dev->vfd_enc);
|
||||
video_unregister_device(dev->vfd_dec);
|
||||
video_device_release(dev->vfd_enc);
|
||||
video_device_release(dev->vfd_dec);
|
||||
v4l2_device_unregister(&dev->v4l2_dev);
|
||||
s5p_mfc_release_firmware(dev);
|
||||
vb2_dma_contig_cleanup_ctx(dev->alloc_ctx[0]);
|
||||
|
|
Loading…
Reference in New Issue