[MTD] Bug in 2.6.10 mtd driver for physmem mapped flash chips
The patch below fixes a small but fatal bug in the code that handles non-buswidth-aligned writes. The problem is that the code used the same index in both map_word and buf, therefore putting the wrong words in the map_word that partially contains old data and partially contains new data. The result: corrupt data is being written. Signed-off-by: Koen Martens <kmartens@sonologic.nl> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Showing
Please register or sign in to comment