mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
[MTD] [NAND] nandsim: fix size bug
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
83973b8793
commit
af3deccfa6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user