diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-01-26 09:26:06 (GMT) |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-02-02 21:58:37 (GMT) |
commit | adef477268ff5ddd0195611dc7e26d7a879fefe1 (patch) | |
tree | ad7b36a817f5f045719b28ade67914a2ce775d5c /drivers | |
parent | abe94c756c08d50566c09a65b9c7fe72f83071c5 (diff) | |
download | linux-fsl-qoriq-adef477268ff5ddd0195611dc7e26d7a879fefe1.tar.xz |
dmaengine: fix memleak in dma_async_device_unregister
While debugging a dma driver I noticed a memleak after
unloading the driver module.
Caught by kmemleak.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/dma/dmaengine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index 6f51a0a..e7a3230 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c @@ -826,6 +826,7 @@ void dma_async_device_unregister(struct dma_device *device) chan->dev->chan = NULL; mutex_unlock(&dma_list_mutex); device_unregister(&chan->dev->device); + free_percpu(chan->local); } } EXPORT_SYMBOL(dma_async_device_unregister); |