From: Joakim Tjernlund Date: Sat, 22 May 2010 08:18:02 +0000 (-0600) Subject: spi/spi_mpc8xxx: fix potential memory corruption. X-Git-Tag: v2.6.35-rc1~266^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9218c2a60facc6ff9a793a9d9ab956194d70012;p=pandora-kernel.git spi/spi_mpc8xxx: fix potential memory corruption. tx_dma/rx_dma are already set to a dummy buffer when no tx/rx buffer and t->tx_dma/t->rx_dma does not contain a dma address, but NULL. This may lead to corruption of kernel memory. Fix this by leaving tx_dma/rx_dma alone. Do not INIT_TX_RX while controller is enabled, this is bad according to the MPC8321 manual. Signed-off-by: Joakim Tjernlund Acked-by: Anton Vorontsov Signed-off-by: Grant Likely --- Reading git-diff-tree failed