Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6610ef08 authored by Shuah Khan's avatar Shuah Khan Committed by Mauro Carvalho Chehab
Browse files

[media] s5p-mfc: fix memory leak in s5p_mfc_remove()



s5p_mfc_remove() fails to release encoder and decoder video devices.

Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarKamil Debski <k.debski@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 7d48ea9f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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]);