linux/drivers/mtd/nand
Brian Norris 5cb1327172 mtd: nand: fix memory leak in ONFI extended parameter page
This fixes a memory leak in the ONFI support code for detecting the
required ECC levels from this commit:

  commit 6dcbe0cdd8
  Author: Huang Shijie <b32955@freescale.com>
  Date:   Wed May 22 10:28:27 2013 +0800

      mtd: get the ECC info from the Extended Parameter Page

In the success case, we never freed the 'ep' buffer.

Also, this fixes an oversight in the same commit where we (harmlessly)
freed the NULL pointer.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2013-09-27 05:48:02 -05:00
..
bcm47xxnflash Fairly unexciting MTD merge for 3.9: 2013-03-02 16:33:54 -08:00
gpmi-nand mtd: gpmi: remove the nand_scan() 2013-08-30 21:38:27 +01:00
ams-delta.c mtd: nand: ams-delta: remove unnecessary platform_set_drvdata() 2013-08-05 20:58:30 +01:00
atmel_nand_ecc.h mtd: at91: atmel_nand: add Programmable Multibit ECC controller support 2012-07-06 18:23:25 +01:00
atmel_nand_nfc.h mtd: atmel_nand: add Nand Flash Controller (NFC) support 2013-08-05 21:07:41 +01:00
atmel_nand.c mtd: atmel_nand: fix error return code in atmel_nand_probe() 2013-08-30 21:52:44 +01:00
au1550nd.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
bf5xx_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
cafe_nand.c mtd: nand: subpage write support for hardware based ECC schemes 2013-04-05 13:22:59 +01:00
cmx270_nand.c mtd: kill MTD_NAND_VERIFY_WRITE 2012-09-29 15:00:46 +01:00
cs553x_nand.c mtd cs553x_nand: use kzalloc() instead of memset 2013-08-30 21:52:48 +01:00
davinci_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
denali_dt.c mtd: denali_dt: Remove redundant use of of_match_ptr 2013-04-05 14:04:34 +01:00
denali_pci.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
denali.c mtd: denali: use NAND_CI_CELLTYPE_MSK instead of hardcoded constant 2013-08-30 21:34:29 +01:00
denali.h mtd: denali: add a DT driver 2012-11-15 15:37:46 +02:00
diskonchip.c mtd: diskonchip: remove unused entries in Kconfig 2013-08-05 21:01:55 +01:00
docg4.c mtd: nand: refactor chip->block_markbad interface 2013-08-30 16:47:52 +01:00
fsl_elbc_nand.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
fsl_ifc_nand.c mtd: fsl_ifc_nand: set NAND_NO_SUBPAGE_WRITE 2013-08-05 19:09:39 +01:00
fsl_upm.c Drivers: mtd: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
fsmc_nand.c mtd: fsmc_nand: simplify platform_get_resource_byname/devm_ioremap_resource 2013-08-30 21:42:20 +01:00
gpio.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
jz4740_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
Kconfig mtd: remove alauda driver 2013-08-30 21:51:57 +01:00
lpc32xx_mlc.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
lpc32xx_slc.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
Makefile mtd: remove alauda driver 2013-08-30 21:51:57 +01:00
mpc5121_nfc.c mtd: mpc5121_nfc: cleanup clock API use 2013-08-23 23:07:46 +02:00
mxc_nand.c mtd: nand: mxc_nand: mark 'const' properly 2013-08-30 21:51:52 +01:00
nand_base.c mtd: nand: fix memory leak in ONFI extended parameter page 2013-09-27 05:48:02 -05:00
nand_bbt.c mtd: nand: remove NAND_BBT_SCANEMPTY 2013-08-30 16:48:37 +01:00
nand_bch.c mtd: cleanup style on pr_debug messages 2011-09-11 15:02:16 +03:00
nand_ecc.c mtd: nane: print source of error message 2013-02-04 09:27:19 +02:00
nand_ids.c mtd: add the ecc info for some full-id nand chips 2013-08-30 21:34:47 +01:00
nandsim.c mtd: nandsim: Staticize local symbols 2013-08-30 21:51:43 +01:00
ndfc.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
nuc900_nand.c mtd: nand: nuc900_nand: remove unnecessary platform_set_drvdata() 2013-08-05 20:59:09 +01:00
omap2.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
orion_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
pasemi_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
plat_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
pxa3xx_nand.c mtd: nand: pxa3xx: Remove unneeded ifdef CONFIG_OF 2013-09-17 09:08:14 -07:00
r852.c mtd: r852: Staticize local symbols 2013-08-30 21:51:45 +01:00
r852.h
s3c2410.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
sh_flctl.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
sharpsl.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
sm_common.c mtd: nand: refactor chip->block_markbad interface 2013-08-30 16:47:52 +01:00
sm_common.h
socrates_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
tmio_nand.c mtd: nand: use dev_get_platdata() 2013-08-30 21:34:33 +01:00
txx9ndfmc.c mtd: simplify use of devm_ioremap_resource 2013-08-30 21:36:15 +01:00
xway_nand.c mtd: lantiq: Add NAND support on Lantiq XWAY SoC. 2012-09-29 15:05:18 +01:00