[PATCH 0/7] mtd: various fixes caught by Coverity

From: Brian Norris
Date: Sat Feb 28 2015 - 05:03:01 EST


Several unrelated MTD fixes inspired by Coverity Scan results. I couldn't test
all of them, but they're all pretty obvious.

Brian Norris (7):
mtd: docg3: drop dead code
mtd: onenand: drop dead code
mtd: tests: fix more potential integer overflows
mtd: nand: fixup bounds checks for nand_{lock,unlock}()
mtd: nand: denali: drop dead code
mtd: blkdevs: remove dead code
mtd: nand: fully initialize mtd_oob_ops

drivers/mtd/devices/docg3.c | 2 --
drivers/mtd/mtd_blkdevs.c | 3 ---
drivers/mtd/nand/denali.c | 3 ---
drivers/mtd/nand/nand_base.c | 12 ++++++------
drivers/mtd/onenand/onenand_base.c | 12 +++---------
drivers/mtd/tests/oobtest.c | 2 +-
drivers/mtd/tests/speedtest.c | 2 +-
drivers/mtd/tests/stresstest.c | 4 ++--
drivers/mtd/tests/subpagetest.c | 4 ++--
drivers/mtd/tests/torturetest.c | 8 ++++----
10 files changed, 19 insertions(+), 33 deletions(-)

--
2.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/