Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: spi-loopback-test: Fix 'tx_buf' might be 'rx_buf'

In function 'spi_test_run_iter': Value 'tx_buf' might be 'rx_buf'.

Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1620629903-15493-5-git-send-email-f.fangjian@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jay Fang and committed by
Mark Brown
9e37a3ab db56d030

+1 -1
+1 -1
drivers/spi/spi-loopback-test.c
··· 875 875 test.transfers[i].len = len; 876 876 if (test.transfers[i].tx_buf) 877 877 test.transfers[i].tx_buf += tx_off; 878 - if (test.transfers[i].tx_buf) 878 + if (test.transfers[i].rx_buf) 879 879 test.transfers[i].rx_buf += rx_off; 880 880 } 881 881