[PATCH v3 14/32] mtd: spi-nor: Fix retlen handling in sst_write()

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Sat Nov 2 03:47:33 PDT 2019



On 10/29/2019 01:17 PM, Tudor Ambarus - M18064 wrote:
> From: Tudor Ambarus <tudor.ambarus at microchip.com>
> 
> 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 at microchip.com>
> ---
>  drivers/mtd/spi-nor/spi-nor.c | 9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)

Applied to spi-nor/next. Thanks.


More information about the linux-mtd mailing list