From: Aaron Wu Date: Thu, 7 Aug 2014 03:43:49 +0000 (+0800) Subject: mtd: gpio_flash: handle case where offset + len exceeds the window size X-Git-Tag: fixes-against-v3.18-rc2~54^2~33^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02f8a24e7b1c253ee37edc684200c11300de23f9;p=pandora-kernel.git 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 [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 --- Reading git-diff-tree failed