Commit fd5c2561 authored by Martyn Welch's avatar Martyn Welch Committed by Greg Kroah-Hartman

vme: Free DMA resource allocation structure

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: default avatarDe Roo, Steven <steven.deroo@arcelormittal.com>
Signed-off-by: default avatarMartyn Welch <martyn.welch@ge.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 71811f32
...@@ -959,6 +959,8 @@ int vme_dma_free(struct vme_resource *resource) ...@@ -959,6 +959,8 @@ int vme_dma_free(struct vme_resource *resource)
mutex_unlock(&ctrlr->mtx); mutex_unlock(&ctrlr->mtx);
kfree(resource);
return 0; return 0;
} }
EXPORT_SYMBOL(vme_dma_free); EXPORT_SYMBOL(vme_dma_free);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment