linux-brain/drivers/ntb
Yang Li 4a6c7c818b NTB: perf: Fix an error code in perf_setup_inbuf()
[ Upstream commit 0097ae5f7af5684f961a5f803ff7ad3e6f933668 ]

When the function IS_ALIGNED() returns false, the value of ret is 0.
So, we set ret to -EINVAL to indicate this error.

Clean up smatch warning:
drivers/ntb/test/ntb_perf.c:602 perf_setup_inbuf() warn: missing error
code 'ret'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 12:26:44 +02:00
..
hw NTB: hw: amd: fix an issue about leak system resources 2020-10-29 09:58:00 +01:00
test NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:26:44 +02:00
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
core.c NTB: Revert the change to use the NTB device dev for DMA allocations 2020-06-24 17:50:40 +02:00
msi.c NTB/msi: remove incorrect MODULE defines 2019-08-05 15:42:27 -04:00
ntb_transport.c NTB: ntb_transport: remove redundant assignment to rc 2019-09-23 17:20:40 -04:00