Commit af3deccf authored by Adrian Hunter's avatar Adrian Hunter Committed by David Woodhouse
Browse files

[MTD] [NAND] nandsim: fix size bug

parent 83973b87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {