projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'for-linus-20161008' of git://git.infradead.org/linux-mtd
[linux-2.6-block.git]
/
drivers
/
mtd
/
nand
/
mxc_nand.c
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index d68314c8c39914b732547b26b4e3efb29d7e9623..d7f724b24fd70afa37a049ec39df98a4fe510250 100644
(file)
--- a/
drivers/mtd/nand/mxc_nand.c
+++ b/
drivers/mtd/nand/mxc_nand.c
@@
-946,7
+946,7
@@
static int mxc_v2_ooblayout_free(struct mtd_info *mtd, int section,
struct nand_chip *nand_chip = mtd_to_nand(mtd);
int stepsize = nand_chip->ecc.bytes == 9 ? 16 : 26;
- if (section > nand_chip->ecc.steps)
+ if (section >
=
nand_chip->ecc.steps)
return -ERANGE;
if (!section) {