Aaron Wu 02f8a24e7b mtd: gpio_flash: handle case where offset + len exceeds the window size
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>
2014-08-19 11:53:10 -07:00
..
2013-04-05 13:04:20 +01:00
2008-06-04 17:50:17 +01:00
2013-08-30 21:34:32 +01:00
2014-05-28 00:05:24 -07:00
2012-11-22 12:07:03 +02:00