Skip to content

Commit

Permalink
spi: spi-loopback-test: Fix 'tx_buf' might be 'rx_buf'
Browse files Browse the repository at this point in the history
[ Upstream commit 9e37a3a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Jay Fang authored and gregkh committed Jul 14, 2021
1 parent 1e6781b commit e6d5949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-loopback-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ static int spi_test_run_iter(struct spi_device *spi,
test.transfers[i].len = len;
if (test.transfers[i].tx_buf)
test.transfers[i].tx_buf += tx_off;
if (test.transfers[i].tx_buf)
if (test.transfers[i].rx_buf)
test.transfers[i].rx_buf += rx_off;
}

Expand Down

0 comments on commit e6d5949

Please sign in to comment.