Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 02f8a24e authored by Aaron Wu's avatar Aaron Wu Committed by Brian Norris
Browse files

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: default avatarAaron 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: default avatarBrian Norris <computersforpeace@gmail.com>
parent bd8898db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment