dma: of: Fix of_node reference leak
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 19 Apr 2013 09:42:13 +0000 (11:42 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 2 May 2013 16:20:38 +0000 (21:50 +0530)
commitf22eb1402244885126c4263eb36b857e4182dd6f
tree7767872c251466aa91c09fb85efd957418f4bf03
parentaf31826d9b1ce432e033f0e91529aa1013076482
dma: of: Fix of_node reference leak

of_dma_request_slave_channel() currently does not drop the reference to the
dma_spec of_node if no DMA controller matching the of_node could be found. This
patch fixes it by always calling of_node_put().

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/of-dma.c