summaryrefslogtreecommitdiff
path: root/drivers/mtd/rfd_ftl.c
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2019-10-25 10:36:16 +0300
committerTudor Ambarus <tudor.ambarus@microchip.com>2019-11-01 11:20:44 +0300
commit4b3745361cc558e046c7c80826740af2fff30954 (patch)
tree3e2050f26c6a6361c93a92a9d16cabd9706cdf8c /drivers/mtd/rfd_ftl.c
parent70d2c6dcf8cc655dabab7700f91b194e8cb8a87c (diff)
downloadlinux-4b3745361cc558e046c7c80826740af2fff30954.tar.xz
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: Tudor Ambarus <tudor.ambarus@microchip.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Diffstat (limited to 'drivers/mtd/rfd_ftl.c')
0 files changed, 0 insertions, 0 deletions