Re: [PATCH v2] spi/xilinx: Fix access invalid memory on xilinx_spi_tx

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 11:06:56AM +0100, Ricardo Ribalda Delgado wrote: > 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: 24ba5e593f391507

[PATCH v2] spi/xilinx: Fix access invalid memory on xilinx_spi_tx

2015-02-02 Thread Ricardo Ribalda Delgado
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: 24ba5e593f391507 Remove rx_fn and tx_fn pointer Signed-off-by: Ricardo Ribalda Delgado --- v2: v1 was

[PATCH v2] spi/xilinx: Fix access invalid memory on xilinx_spi_tx

2015-02-02 Thread Ricardo Ribalda Delgado
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: 24ba5e593f391507 Remove rx_fn and tx_fn pointer Signed-off-by: Ricardo Ribalda Delgado

Re: [PATCH v2] spi/xilinx: Fix access invalid memory on xilinx_spi_tx

2015-02-02 Thread Mark Brown
On Mon, Feb 02, 2015 at 11:06:56AM +0100, Ricardo Ribalda Delgado wrote: 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: 24ba5e593f391507 Remove rx_fn