Re: [PATCH 1/2] dma: of: Fix of_node reference leak

2013-05-02 Thread Vinod Koul
On Fri, Apr 19, 2013 at 11:42:13AM +0200, Lars-Peter Clausen wrote: > 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

Re: [PATCH 1/2] dma: of: Fix of_node reference leak

2013-04-19 Thread Jon Hunter
On 04/19/2013 05:10 AM, Arnd Bergmann wrote: > On Friday 19 April 2013, Lars-Peter Clausen wrote: >> 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 callin

Re: [PATCH 1/2] dma: of: Fix of_node reference leak

2013-04-19 Thread Arnd Bergmann
On Friday 19 April 2013, Lars-Peter Clausen wrote: > 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 Clau

[PATCH 1/2] dma: of: Fix of_node reference leak

2013-04-19 Thread Lars-Peter Clausen
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 --- drivers/dma/of-dma.c | 11 ++- 1 file changed,