Skip to content
Browse files

drivers/spi_nor: fix writes across page boundaries

The code failed to increment the address after completing a partial
write, causing writes that cross a page boundary overwrite at a page

Signed-off-by: Peter A. Bigot <>
  • Loading branch information...
pabigot authored and carlescufi committed Aug 3, 2019
1 parent 08a93d2 commit 86dcf3c173e6a9542e7751fc2ab0850ad8d80943
Showing with 1 addition and 0 deletions.
  1. +1 −0 drivers/flash/spi_nor.c
@@ -229,6 +229,7 @@ static int spi_nor_write(struct device *dev, off_t addr, const void *src,

size -= to_write;
src = (const u8_t *)src + to_write;
addr += to_write;


0 comments on commit 86dcf3c

Please sign in to comment.
You can’t perform that action at this time.