mtd: gpio_flash: handle case where offset + len exceeds the window size
authorAaron Wu <aaron.wu@analog.com>
Thu, 7 Aug 2014 03:43:49 +0000 (11:43 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 19 Aug 2014 18:53:10 +0000 (11:53 -0700)
Fix the bug in handling gpio flash read/write when offset + len
from MTD exceeds the window size

Signed-off-by: Aaron Wu <Aaron.wu@analog.com>
[Brian: made some commentary edits. Also note that the BUG_ON() was
provably false for all non-negative inputs (since x % y <= x), so we
dropped it.]

Signed-off-by: Brian Norris <computersforpeace@gmail.com>

No differences found