git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb770b
)
iser-target: check device before dereferencing its variable
author
Vu Pham
<vuhuong@mellanox.com>
Mon, 21 Oct 2013 21:48:54 +0000
(
00:48
+0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Thu, 24 Oct 2013 04:42:33 +0000
(21:42 -0700)
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>
drivers/infiniband/ulp/isert/ib_isert.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/ulp/isert/ib_isert.c
b/drivers/infiniband/ulp/isert/ib_isert.c
index
3591855
..
6df2350
100644
(file)
--- 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) {