tcm_fc: Do not report target role when target is not defined
commitda863dd651cc228258165d80b494c9756c73b75f
authorMark Rustad <mark.d.rustad@intel.com>
Fri, 21 Dec 2012 18:58:19 +0000 (21 10:58 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 19:44:33 +0000 (21 11:44 -0800)
treec7594a267d0f906badcb7c4d2f0695773b50a49c
parentcdaae60625299491d2b30d39a44592c3f19c4e56
tcm_fc: Do not report target role when target is not defined

commit edec8dfefa1f372b2dd8197da555352e76a10c03 upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/tcm_fc/tfc_sess.c