Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit adef4772 authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Dan Williams
Browse files

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: default avatarAnatolij Gustschin <agust@denx.de>
Cc: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent abe94c75
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);