misc: sram: fix device node reference leak on error
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 1 Jun 2015 12:29:55 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Jun 2015 00:03:56 +0000 (17:03 -0700)
commitb13365bbecae98d31862df48f61522634ed5837d
tree1ef97f401788495e8042231b7cf885280b720e44
parentee895ccdf776a676655b1405d493cfcf43d157f0
misc: sram: fix device node reference leak on error

A pointer device node reference should be decremented on manual exit
from for_each_available_child_of_node() loop.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/sram.c