]> git.baikalelectronics.ru Git - kernel.git/commit
sound/soc/fsl/fsl_dma.c: add missing of_node_put
authorTimur Tabi <timur@freescale.com>
Mon, 22 Aug 2011 14:22:41 +0000 (09:22 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Aug 2011 22:26:33 +0000 (23:26 +0100)
commit849eb3369e410a8e150caa9ff738d73512bc0c96
tree1b17cb86b1b47f46a090eccde7a87280bde83717
parentfb8ca780f8d81ab6083b55cef3ce8dc195e1ec01
sound/soc/fsl/fsl_dma.c: add missing of_node_put

of_parse_phandle increments the reference count of np, so this should be
decremented before trying the next possibility.

Since we don't actually use np, we can decrement the reference count
immediately.

Reported-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/fsl/fsl_dma.c