mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 07:16:43 +07:00
[media] radio-maxiradio: fix memory leak when device is removed
Memory allocated for maxiradio device is not deallocated when the device is removed. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
d27d5f1a4d
commit
04bc936591
@ -183,6 +183,7 @@ static void maxiradio_remove(struct pci_dev *pdev)
|
||||
outb(0, dev->io);
|
||||
v4l2_device_unregister(v4l2_dev);
|
||||
release_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0));
|
||||
kfree(dev);
|
||||
}
|
||||
|
||||
static struct pci_device_id maxiradio_pci_tbl[] = {
|
||||
|
Loading…
Reference in New Issue
Block a user