OSDN Git Service

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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 18:52:39 +0000 (11:52 -0700)
commite0546fc1ba66c90cb38a5764357366267d3e58e4
tree2b472ce77b4b24eed42cae22f8a5abcd5d3d22fb
parentbbc050488525e1ab1194c27355f63c66814385b8
Target/iser: Fix a wrong dereference in case discovery session is over iser

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>
Cc: stable@vger.kernel.org # 3.15+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c