[PATCH 0/2] nand: Remove BUG abuse

Ezequiel Garcia
2016-04-01T21:29:59Z

Hi,

While using nandsim to debug an issue with an UBI image,
I hit a BUG() when passing some crazy ID values to nandsim.

I've always felt that nand_base.c is sort of abusing the
BUG() macro, so decided to fix it.

There are other BUG() uses, but they aren't in the nand_scan
path, so I'm not touching them.

Patches apply cleanly on v4.6-rc1.

Ezequiel Garcia (2):
mtd: nand: Drop mtd.owner requirement in nand_scan
mtd: nand: Remove BUG() abuse in nand_scan_tail

drivers/mtd/nand/nand_base.c | 62 ++++++++++++++++++++++++--------------------
1 file changed, 34 insertions(+), 28 deletions(-)

--
2.7.0