diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-10-25 10:36:16 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2019-11-01 11:20:44 +0300 |
commit | 4b3745361cc558e046c7c80826740af2fff30954 (patch) | |
tree | 3e2050f26c6a6361c93a92a9d16cabd9706cdf8c /drivers/mtd/rfd_ftl.c | |
parent | 70d2c6dcf8cc655dabab7700f91b194e8cb8a87c (diff) | |
download | linux-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