Skip to contentSkip to conversation

nandsim: fix size bug

PATCH In review Adrian Hunter 2 participants 2 messages May 30, 2008 – Jun 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 nandsim: fix size bug

---
drivers/mtd/nand/nandsim.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/nandsim.c +0 -0
index bb885d1..b28d760 100644
@@ -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
#1 lore raw
Quoted 4 lines · Adrian Hunter
---
 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 (Битюцкий Артём)