of/base: Clean up exit paths for of_parse_phandle_with_args()
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 12 Feb 2013 21:21:49 +0000 (21:21 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 13 Feb 2013 10:05:58 +0000 (10:05 +0000)
commit23ce04c0734e33b1042273b0ed11a8e4f7f988ca
tree9d2a42607410cd91388d6ac6511bf92a9651eca0
parentcabb7d5b7896a4d307ea6ad6d3bd045810544151
of/base: Clean up exit paths for of_parse_phandle_with_args()

Some of the exit paths were not correctly releasing the node. Fix it by
creating an 'err' label for collecting the error paths and releasing the
node.

Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/base.c