projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d27d5f1
)
[media] radio-maxiradio: fix memory leak when device is removed
author
Alexey Khoroshilov
<
[email protected]
>
Fri, 3 Jun 2016 22:33:06 +0000
(19:33 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Tue, 28 Jun 2016 11:05:47 +0000
(08:05 -0300)
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 <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/radio/radio-maxiradio.c
patch
|
blob
|
history
diff --git
a/drivers/media/radio/radio-maxiradio.c
b/drivers/media/radio/radio-maxiradio.c
index 70fd8e80198a5797895a5a7a60056307279bd795..8253f79d5d754fa383706293228d37d6f95ba8df 100644
(file)
--- 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[] = {