mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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: De Roo, Steven <[email protected]> Signed-off-by: Martyn Welch <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
71811f3271
commit
fd5c256140
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue