]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
spi flash: fix crash due to spi flash miscommunication
authorBrad Bozarth <bflinux@yumbrad.com>
Fri, 2 Jan 2009 03:45:47 +0000 (22:45 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 24 Jan 2009 00:57:40 +0000 (01:57 +0100)
commit68f8718df2ed4c2f43031407ccf6cfa81125dddc
treea375c69324a631741424cbaef3dfe46c5e8099ee
parentce82ff05388b5ddafdf6082ef0776cce72c40b1c
spi flash: fix crash due to spi flash miscommunication

Higher spi flash layers expect to be given back a pointer that was
malloced so that it can free the result, but the lower layers return
a pointer that is in the middle of the malloced memory. Reorder the
members of the lower spi structures so that things work out.

Signed-off-by: Brad Bozarth <bflinux@yumbrad.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
drivers/mtd/spi/atmel.c
drivers/mtd/spi/stmicro.c