]> git.itanic.dy.fi Git - linux-stable/commit
RDMA/irdma: Use s/g array in post send only when its valid
authorSindhu-Devale <sindhu.devale@intel.com>
Tue, 6 Sep 2022 22:32:43 +0000 (17:32 -0500)
committerLeon Romanovsky <leon@kernel.org>
Wed, 7 Sep 2022 08:22:18 +0000 (11:22 +0300)
commit2c8844431d065ae15a6b442f5769b60aeaaa07af
treeed3b3fce7029218d27a9b8a79f313c96d53781b8
parentdcb23bbb1de7e009875fdfac2b8a9808a9319cc6
RDMA/irdma: Use s/g array in post send only when its valid

Send with invalidate verb call can pass in an
uninitialized s/g array with 0 sge's which is
filled into irdma WQE and causes a HW asynchronous
event.

Fix this by using the s/g array in irdma post send
only when its valid.

Fixes: 551c46e ("RDMA/irdma: Add user/kernel shared libraries")
Signed-off-by: Sindhu-Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Link: https://lore.kernel.org/r/20220906223244.1119-5-shiraz.saleem@intel.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/irdma/uk.c