diff options
author | 2018-05-07 13:23:36 -0400 | |
---|---|---|
committer | 2018-05-09 10:45:18 -0400 | |
commit | a75895b1ebd944a7873cbf76d30de8720955f8b3 (patch) | |
tree | c074896cb17fd2f49022250e75d084ee6ca0fef0 /drivers/infiniband/hw/i40iw/i40iw_verbs.h | |
parent | RDMA/hns: Fix the bug with NULL pointer (diff) | |
download | wireguard-linux-a75895b1ebd944a7873cbf76d30de8720955f8b3.tar.xz wireguard-linux-a75895b1ebd944a7873cbf76d30de8720955f8b3.zip |
RDMA/i40iw: Avoid panic when objects are being created and destroyed
A panic occurs when there is a newly-registered element on the QP/CQ MR
list waiting to be attached, but a different MR is deregistered. The
current code only checks for whether the list is empty, not whether the
element being deregistered is actually on the list.
Fix the panic by adding a boolean to track if the object is on the list.
Fixes: d37498417947 ("i40iw: add files for iwarp interface")
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_verbs.h')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_verbs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.h b/drivers/infiniband/hw/i40iw/i40iw_verbs.h index 9067443cd311..76cf173377ab 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.h +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.h @@ -78,6 +78,7 @@ struct i40iw_pbl { }; bool pbl_allocated; + bool on_list; u64 user_base; struct i40iw_pble_alloc pble_alloc; struct i40iw_mr *iwmr; |