WSL2-Linux-Kernel/drivers/infiniband
Sindhu-Devale b9b39f7332 RDMA/irdma: Use s/g array in post send only when its valid
commit 2c8844431d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-20 12:39:46 +02:00
..
core IB/core: Fix a nested dead lock as part of ODP flow 2022-09-15 11:30:06 +02:00
hw RDMA/irdma: Use s/g array in post send only when its valid 2022-09-20 12:39:46 +02:00
sw RDMA/siw: Pass a pointer to virt_to_page() 2022-09-15 11:30:05 +02:00
ulp RDMA/srp: Set scmnd->result only when scmnd is not NULL 2022-09-15 11:30:04 +02:00
Kconfig RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00
Makefile