Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a66614b authored by Vu Pham's avatar Vu Pham Committed by Nicholas Bellinger
Browse files

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: default avatarVu Pham <vu@mellanox.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 5cb770bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {