diff options
| author | Vu Pham <[email protected]> | 2013-10-21 21:48:54 +0000 |
|---|---|---|
| committer | Nicholas Bellinger <[email protected]> | 2013-10-24 04:42:33 +0000 |
| commit | 0a66614b937c4cfe98c68613259367bf402f368b (patch) | |
| tree | 272b2ebea9441b9e770634d81feb4226505bb1a2 | |
| parent | target: Return an error for WRITE SAME with ANCHOR==1 (diff) | |
| download | kernel-0a66614b937c4cfe98c68613259367bf402f368b.tar.gz kernel-0a66614b937c4cfe98c68613259367bf402f368b.zip | |
iser-target: check device before dereferencing its variable
This patch changes isert_connect_release() to correctly check for
the existence struct isert_device *device before checking for
isert_device->use_frwr.
Signed-off-by: Vu Pham <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
| -rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 3591855cc5b5..6df23502059a 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c @@ -594,7 +594,7 @@ isert_connect_release(struct isert_conn *isert_conn) pr_debug("Entering isert_connect_release(): >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"); - if (device->use_frwr) + if (device && device->use_frwr) isert_conn_free_frwr_pool(isert_conn); if (isert_conn->conn_qp) { |
