Merge branch 'pm-domains'
[cascardo/linux.git] / drivers / infiniband / hw / i40iw / i40iw_verbs.c
index 722e5af..6329c97 100644 (file)
@@ -1925,8 +1925,7 @@ static int i40iw_dereg_mr(struct ib_mr *ib_mr)
                }
                if (iwpbl->pbl_allocated)
                        i40iw_free_pble(iwdev->pble_rsrc, palloc);
-               kfree(iwpbl->iwmr);
-               iwpbl->iwmr = NULL;
+               kfree(iwmr);
                return 0;
        }