Skip to content
Unverified Commit 4b374536 authored by Tudor Ambarus's avatar Tudor Ambarus
Browse files

mtd: spi-nor: Fix retlen handling in sst_write()



In case the write of the first byte failed, retlen was incorrectly
incremented to *retlen += actual; on the exit path. retlen should be
incremented when actual data was written to the flash.

Signed-off-by: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent 70d2c6dc
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