mtd: mpc5121_nfc: fix memory leak on error path
authorJulia Lawall <julia@diku.dk>
Sun, 29 Aug 2010 09:52:42 +0000 (11:52 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 22:40:22 +0000 (23:40 +0100)
commitcf363518ca44d654c51497b3f73c69a34565155d
tree692db693c4c2d7eb80815af3dd30a10e23669209
parent9d8b10437441e7f31ce86202ccadad922a9e914f
mtd: mpc5121_nfc: fix memory leak on error path

Add a call to of_node_put in the error handling code following a call to
of_find_compatible_node.

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mpc5121_nfc.c