kernel-fxtec-pro1x/drivers/mtd/devices
Dan Carpenter b49e345e61 mtd: docg3: dereferencing an ERR_PTR() in docg3_probe()
If doc_probe_device() returned an ERR_PTR, then we accidentally saved
that to docg3_floors[floor] = mtd; which gets derefenced in the error
handling when we call doc_release_device().

I've reworked the error handling to take care of that and hopefully
make it a little simpler.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-01-09 18:07:32 +00:00
..
block2mtd.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
doc2000.c mtd: rename MTD_OOB_* to MTD_OPS_* 2011-09-11 15:28:59 +03:00
doc2001.c mtd: rename MTD_OOB_* to MTD_OPS_* 2011-09-11 15:28:59 +03:00
doc2001plus.c mtd: rename MTD_OOB_* to MTD_OPS_* 2011-09-11 15:28:59 +03:00
docecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
docg3.c mtd: docg3: dereferencing an ERR_PTR() in docg3_probe() 2012-01-09 18:07:32 +00:00
docg3.h mtd: docg3: add protection areas sysfs access 2012-01-09 18:07:30 +00:00
docprobe.c mtd: clean up usage of MTD_DOCPROBE_ADDRESS 2011-10-30 14:22:36 +02:00
Kconfig mtd: docg3: add ECC correction code 2012-01-09 18:07:26 +00:00
lart.c mtd: lart: cleanup: drop HAVE_PARTITIONS 2011-09-11 15:02:05 +03:00
m25p80.c mtd: Remove redundant spi driver bus initialization 2012-01-09 18:07:31 +00:00
Makefile mtd: Add DiskOnChip G3 support 2011-10-14 12:03:47 +03:00
ms02-nv.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
ms02-nv.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mtd_dataflash.c mtd: Remove redundant spi driver bus initialization 2012-01-09 18:07:31 +00:00
mtdram.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
phram.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
pmc551.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
slram.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
sst25l.c mtd: Remove redundant spi driver bus initialization 2012-01-09 18:07:31 +00:00