diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2016-06-03 19:33:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-28 08:05:47 -0300 |
commit | 04bc936591469433b6ad3b16b04e07cb1b86690a (patch) | |
tree | 95e61d1034613e6897e5e736a1557fc8e31fe348 /drivers/media/radio | |
parent | d27d5f1a4d00808cb8751ddb972a40f952576fd8 (diff) | |
download | blackbird-op-linux-04bc936591469433b6ad3b16b04e07cb1b86690a.tar.gz blackbird-op-linux-04bc936591469433b6ad3b16b04e07cb1b86690a.zip |
[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>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-maxiradio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c index 70fd8e80198a..8253f79d5d75 100644 --- a/drivers/media/radio/radio-maxiradio.c +++ b/drivers/media/radio/radio-maxiradio.c @@ -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[] = { |