Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176996
b: refs/heads/master
c: 0a032a4
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and David Woodhouse committed Dec 16, 2009
1 parent 82564ee commit ea79eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: caf0e8e028516253afce6e40c52f0c193a221f8a
refs/heads/master: 0a032a4df6dc4a82bcd1c401e57ee71825d30c14
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/onenand/onenand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -3165,10 +3165,10 @@ static int onenand_otp_walk(struct mtd_info *mtd, loff_t from, size_t len,

/* Check User/Factory boundary */
if (mode == MTD_OTP_USER) {
if (((mtd->writesize * otp_pages) - (from + len)) < 0)
if (mtd->writesize * otp_pages < from + len)
return 0;
} else {
if (((mtd->writesize * otp_pages) - len) < 0)
if (mtd->writesize * otp_pages < len)
return 0;
}

Expand Down

0 comments on commit ea79eb2

Please sign in to comment.