tcm_fc: Do not report target role when target is not defined
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 21 Dec 2012 18:58:19 +0000 (10:58 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 11 Jan 2013 04:08:58 +0000 (20:08 -0800)
commitedec8dfefa1f372b2dd8197da555352e76a10c03
treedc14408bf9e8eb77c2f89a301f30fd319051c4a5
parentf2eeba214bcd0215b7f558cab6420e5fd153042b
tcm_fc: Do not report target role when target is not defined

Clear the target role when no target is provided for
the node performing a PRLI.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Reviewed-by: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Acked by Robert Love <robert.w.love@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/tcm_fc/tfc_sess.c