iser-target: check device before dereferencing its variable
authorVu Pham <vuhuong@mellanox.com>
Mon, 21 Oct 2013 21:48:54 +0000 (00:48 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 24 Oct 2013 04:42:33 +0000 (21:42 -0700)
commit0a66614b937c4cfe98c68613259367bf402f368b
tree272b2ebea9441b9e770634d81feb4226505bb1a2
parent5cb770bf4b777dae832151f4bc4d35e7a99f9880
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 <vu@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c