Skip to content

Commit

Permalink
iser-target: check device before dereferencing its variable
Browse files Browse the repository at this point in the history
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 <vu@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
  • Loading branch information
Vu Pham authored and Nicholas Bellinger committed Oct 24, 2013
1 parent 5cb770b commit 0a66614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/ulp/isert/ib_isert.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0a66614

Please sign in to comment.