dmaengine: fix memleak in dma_async_device_unregister
authorAnatolij Gustschin <agust@denx.de>
Tue, 26 Jan 2010 09:26:06 +0000 (10:26 +0100)
committerDan Williams <dan.j.williams@intel.com>
Tue, 2 Feb 2010 21:58:37 +0000 (14:58 -0700)
commitadef477268ff5ddd0195611dc7e26d7a879fefe1
treead7b36a817f5f045719b28ade67914a2ce775d5c
parentabe94c756c08d50566c09a65b9c7fe72f83071c5
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>
drivers/dma/dmaengine.c