[PATCH] mtd_dataflash use command allocated on stack

David Woodhouse dwmw2 at infradead.org
Tue Apr 22 16:20:38 EDT 2008


On Fri, 2008-04-04 at 09:02 +0400, Vitja Makarov wrote:
> Hi!
> 
> 
> Currently mtd_dataflash driver has command in their private structure.
> That is only 4 bytes, sometimes actually 8 is needed.
> Also it could be accessed twice before lock is taken.
> 
> This patch moves command to stack.

Is that allowed? The SPI code might DMA from it, surely?

-- 
dwmw2




More information about the linux-mtd mailing list