projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71811f3
)
vme: Free DMA resource allocation structure
author
Martyn Welch
<martyn.welch@ge.com>
Thu, 6 Jun 2013 11:29:16 +0000
(12:29 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:54:08 +0000
(12:54 -0700)
There is a memory leak in the function vme_dma_free(). The resource
structure allocated in vme_dma_request() needs to be free'd in
vme_dma_free().
Reported-by: De Roo, Steven <steven.deroo@arcelormittal.com>
Signed-off-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/vme/vme.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/vme/vme.c
b/drivers/vme/vme.c
index 5e6c7d74e19f44cc44f21e07872899ad1c5e05a0..f6856b42749655f3730e99c3bdb45891efb1d0b9 100644
(file)
--- a/
drivers/vme/vme.c
+++ b/
drivers/vme/vme.c
@@
-959,6
+959,8
@@
int vme_dma_free(struct vme_resource *resource)
mutex_unlock(&ctrlr->mtx);
+ kfree(resource);
+
return 0;
}
EXPORT_SYMBOL(vme_dma_free);
This page took
0.02503 seconds
and
5
git commands to generate.