diff options
author | Evgeny Novikov <novikov@ispras.ru> | 2021-05-27 11:26:24 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 10:07:53 +0200 |
commit | 76e21bb8be4f5f987f3006d197196fe6af63f656 (patch) | |
tree | 80bef1839f3276353b3e10d212c1deacc5720c91 /drivers/media/test-drivers | |
parent | 1b03b539e63512cc003982113a51b520b7582d93 (diff) | |
download | linux-stable-76e21bb8be4f5f987f3006d197196fe6af63f656.tar.gz linux-stable-76e21bb8be4f5f987f3006d197196fe6af63f656.tar.bz2 linux-stable-76e21bb8be4f5f987f3006d197196fe6af63f656.zip |
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>
Diffstat (limited to 'drivers/media/test-drivers')
-rw-r--r-- | drivers/media/test-drivers/vidtv/vidtv_bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_bridge.c b/drivers/media/test-drivers/vidtv/vidtv_bridge.c index 75617709c8ce..0f6d998d18dc 100644 --- a/drivers/media/test-drivers/vidtv/vidtv_bridge.c +++ b/drivers/media/test-drivers/vidtv/vidtv_bridge.c @@ -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; |