linux/drivers/mtd/devices
Dan Carpenter 6c810f9014 mtg: docg3: potential divide by zero in doc_write_oob()
If we set oobdelta to zero then we will either return -EINVAL or hit
a divide (modulus) by zero on the next line when we check
"(ooblen % oobdelta)".  It's better to just return -EINVAL here instead.

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>
2012-12-10 15:28:49 +02:00
..
Kconfig mtd: basic (read only) driver for BCMA serial flash 2012-09-29 15:39:12 +01:00
Makefile mtd: basic (read only) driver for BCMA serial flash 2012-09-29 15:39:12 +01:00
bcm47xxsflash.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
block2mtd.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
doc2000.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
doc2001plus.c mtd: use %*ph[CN] to dump small buffers 2012-09-29 14:59:28 +01:00
docecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
docg3.c mtg: docg3: potential divide by zero in doc_write_oob() 2012-12-10 15:28:49 +02:00
docg3.h mtd: docg3 add protection against concurrency 2012-03-27 01:03:27 +01:00
docprobe.c mtd: diskonchip: don't warn about ARM architecture 2012-11-16 10:57:38 +02:00
lart.c mtd: move zero length verification to MTD API functions 2012-03-27 00:32:19 +01:00
m25p80.c mtd: m25p80: modify info for Micron N25Q128 2012-12-03 16:36:51 +02:00
ms02-nv.c mtd: do not duplicate length and offset checks in drivers 2012-03-27 00:28:18 +01:00
ms02-nv.h MTD/JFFS2: remove CVS keywords 2008-06-04 17:50:17 +01:00
mtd_dataflash.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
mtdram.c mtd: harmonize mtd_point interface implementation 2012-03-27 00:32:11 +01:00
phram.c mtd: phram: fix section mismatch for phram_setup 2012-03-27 01:02:29 +01:00
pmc551.c MTD merge for 3.4 2012-03-30 17:31:56 -07:00
slram.c mtd: slram: invalid checking of absolute end address 2012-11-09 17:02:50 +02:00
spear_smi.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
sst25l.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00