Target/iser: Fix a wrong dereference in case discovery session is over iser
authorSagi Grimberg <sagig@mellanox.com>
Tue, 10 Jun 2014 10:41:41 +0000 (13:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:55:38 +0000 (15:55 -0800)
commit179298f0cda5389c6a7dd4f8eeda208edf6a6eff
tree5a48ddd4bac046dcfa72c3c7d0e05202e832a13b
parentc0cf55145129008c8ce068d5c17ebaa79885a7fb
Target/iser: Fix a wrong dereference in case discovery session is over iser

commit e0546fc1ba66c90cb38a5764357366267d3e58e4 upstream.

In case the discovery session is carried over iser, we can't
access the assumed network portal since the default portal is
used. In this case we don't really need to allocate the fastreg
pool, just prepare to the text pdu that will follow.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reported-by: Alex Tabachnik <alext@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c