Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libhns: Fix reference to uninitialized cq pointer
[ Upstream commit 18e3117 ] For QPs which do not have an SQ, such as XRC TGT,the send_cq pointer will not be initailized. Since the supported max_gs will be 0 in this case, check it and return before referencing the send_cq pointer. Fixes: cbdf5e3 ("libhns: Reimplement verbs of post_send and post_recv for hip08 RoCE") Signed-off-by: Chengchang Tang <[email protected]> Signed-off-by: Junxian Huang <[email protected]> Signed-off-by: Nicolas Morey <[email protected]>
- Loading branch information