Skip to content
Commit a10735b5 authored by Heesub Shin's avatar Heesub Shin
Browse files

mtd/progmem: fix incorrect target address calculation



progmem_read/write() is incorrectly calculating the target address,
expecting the offset argument is given in a block number. This is
completely wrong and as a result invalid flash region is accessed.
Byte-oriented read/write interfaces of mtd device accept the
target address in a byte offset, not a block number.

Signed-off-by: default avatarHeesub Shin <heesub.shin@samsung.com>
parent b582d0b5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment