nand/elbc: Memory leak fix
authorRaghav Dogra <raghav@freescale.com>
Wed, 20 May 2015 09:24:58 +0000 (14:54 +0530)
committerScott Wood <scottwood@freescale.com>
Fri, 22 May 2015 20:45:51 +0000 (15:45 -0500)
commit6b8583b0adac6c8119d2fc6fd4f03ed8373b5d42
treedafe6d0741da374e96b45c086cb5840c4310cc37
parent5e856fa8bec49b86e680626be772dd6b6aa3e5df
nand/elbc: Memory leak fix

Freeing allocated memory to priv before returning
from the function

Signed-off-by: Raghav Dogra <raghav@freescale.com>
[scottwood: removed unnecessary cast]
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/fsl_elbc_nand.c