mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 22:14:20 +08:00
media: vidtv: Fix memory leak in remove
vidtv_bridge_remove() releases and cleans up everything except for dvb itself. The patch adds this missed release. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Evgeny Novikov <novikov@ispras.ru> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
1b03b539e6
commit
76e21bb8be
@ -557,6 +557,7 @@ static int vidtv_bridge_remove(struct platform_device *pdev)
|
||||
dvb_dmxdev_release(&dvb->dmx_dev);
|
||||
dvb_dmx_release(&dvb->demux);
|
||||
dvb_unregister_adapter(&dvb->adapter);
|
||||
kfree(dvb);
|
||||
dev_info(&pdev->dev, "Successfully removed vidtv\n");
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user