soc: ti: knav_qmss: Put refcount for dev node in failure case
authorVasyl Gomonovych <gomonovych@gmail.com>
Mon, 25 Jan 2021 04:51:36 +0000 (20:51 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 25 Jan 2021 04:51:36 +0000 (20:51 -0800)
commita88f66d4a8668e66afa8eb4099b4515e0729b52a
treee343da1e35ca91aedfd0582115ad6060c5c16b54
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
soc: ti: knav_qmss: Put refcount for dev node in failure case

for_each_child_of_node increases refcount for each device_node and decreases previous one
in a loop, but in case jump out of a loop current node refcount has no chnase for decreases
so requires an of_node_put for jupm out cases.

Fix based on raport from
scripts/coccinelle/iterators/for_each_child.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/knav_dma.c
drivers/soc/ti/knav_qmss_queue.c