]> git.baikalelectronics.ru Git - kernel.git/commit
spi/xilinx: Fix access invalid memory on xilinx_spi_tx
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Mon, 2 Feb 2015 10:06:56 +0000 (11:06 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 2 Feb 2015 12:17:19 +0000 (12:17 +0000)
commitfd922f767e1beac7b509dbfe489586de79f8c971
tree8d516008ea9cde7c6e2de5519bbbc913a85bf703
parent136161e574b28863235bbc89190226e440a5dfc4
spi/xilinx: Fix access invalid memory on xilinx_spi_tx

On 1 and 2 bytes per word, the transfer of the 3 last bytes will access
memory outside tx_ptr.

Although this has not trigger any error on real hardware, we should
better fix this.

Fixes: aadb57f3932ca5db (Remove rx_fn and tx_fn pointer)
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-xilinx.c