Skip to content

Commit

Permalink
[MTD] [NAND] nandsim: fix size bug
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Adrian Hunter authored and David Woodhouse committed Jun 4, 2008
1 parent 83973b8 commit af3decc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit af3decc

Please sign in to comment.