driver/mtd:IFC: Fix possible memory leak
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Tue, 10 Apr 2012 22:48:27 +0000 (22:48 +0000)
committerScott Wood <scott@tyr.buserror.net>
Fri, 18 May 2012 23:15:24 +0000 (18:15 -0500)
commit76d067ac33947f08fbbdea27bae5f3a263eda3f3
tree7f0e3495f01ae90adf3913ba2dd17cd6c92dd259
parent807fc702e0b09ac7bc335acfd3b0f54f9f08b643
driver/mtd:IFC: Fix possible memory leak

if priv->bank >= MAX_BANK, priv should be freed before returning ENODEV.

Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com>
Signed-off-by: Scott Wood <scott@tyr.buserror.net>
drivers/mtd/nand/fsl_ifc_nand.c