nandsim: fix size bug
Subsystems (2)
PATCH 1/4 nandsim: fix size bug
Signed-off-by Adrian Hunter <[email protected]>
---drivers/mtd/nand/nandsim.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/nandsim.c +0 -0
@@ -511,7 +511,7 @@ static int init_nandsim(struct mtd_info *mtd)
}
if (ns->options & OPT_SMALLPAGE) {
- if (ns->geom.totsz < (32 << 20)) {
+ if (ns->geom.totsz <= (32 << 20)) {
ns->geom.pgaddrbytes = 3;
ns->geom.secaddrbytes = 2;
} else {Signature · 1 line
1.5.2.5
Quoted 4 lines · Adrian Hunter
Signed-off-by Adrian Hunter <[email protected]>--- drivers/mtd/nand/nandsim.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Looks good to me, ack for whole series.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)