summaryrefslogtreecommitdiff
path: root/drivers/mtd/nand/raw/fsl_ifc_nand.c
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-18 21:46:04 -0500
committerMiquel Raynal <miquel.raynal@bootlin.com>2019-08-24 13:13:41 +0200
commit86aa04f4c2215912fcca6728f2dcf174f7e31fc4 (patch)
tree83e2bf4ce79b3006cc722ae76ccc0ba57a9f6c43 /drivers/mtd/nand/raw/fsl_ifc_nand.c
parentd83aef09aaa50bdafbb32981859128299abf32eb (diff)
mtd: rawnand: Fix a memory leak bug
In nand_scan_bbt(), a temporary buffer 'buf' is allocated through vmalloc(). However, if check_create() fails, 'buf' is not deallocated, leading to a memory leak bug. To fix this issue, free 'buf' before returning the error. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/fsl_ifc_nand.c')
0 files changed, 0 insertions, 0 deletions