diff options
author | Aaron Wu <aaron.wu@analog.com> | 2014-08-07 11:43:49 +0800 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-08-19 11:53:10 -0700 |
commit | 02f8a24e7b1c253ee37edc684200c11300de23f9 (patch) | |
tree | 14298126df14c0a3ff697305884ef44d16de3810 /drivers/mtd/spi-nor | |
parent | bd8898db3e03147d9d7ddd48876fb3f3bcbab6c1 (diff) | |
download | op-kernel-dev-02f8a24e7b1c253ee37edc684200c11300de23f9.zip op-kernel-dev-02f8a24e7b1c253ee37edc684200c11300de23f9.tar.gz |
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>
Diffstat (limited to 'drivers/mtd/spi-nor')
0 files changed, 0 insertions, 0 deletions