]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: fsl_raid: add missing of_node_put() in fsl_re_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Wed, 10 Aug 2016 13:44:56 +0000 (13:44 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 22 Aug 2016 06:21:34 +0000 (11:51 +0530)
commit93e11eb1b745ee8dbd4f98f24b542d496c8f1e03
tree47f3a4395f625d909aa31e9e58683dd8c61cd74e
parent06777c4ec78a43977b63f1d5045def057227c2c5
dmaengine: fsl_raid: add missing of_node_put() in fsl_re_probe()

When terminating for_each_compatible_node() iteration with
break or return, of_node_put() should be used to prevent
stale device node references from being left behind.

Found by Coccinelle.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/fsl_raid.c