target:fix condition return in core_pr_dump_initiator_port()
authortangwenji <tang.wenji@zte.com.cn>
Thu, 24 Aug 2017 11:59:37 +0000 (19:59 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:45:24 +0000 (14:45 -0700)
commit24528f089d0a444070aa4f715ace537e8d6bf168
tree904798568ac4d7cc756c49384f70202d7b42ca66
parenta2db857bf9ec62e91a6120a16436251be8e1c5ca
target:fix condition return in core_pr_dump_initiator_port()

When is pr_reg->isid_present_at_reg is false,this function should return.

This fixes a regression originally introduced by:

  commit d2843c173ee53cf4c12e7dfedc069a5bc76f0ac5
  Author: Andy Grover <agrover@redhat.com>
  Date:   Thu May 16 10:40:55 2013 -0700

      target: Alter core_pr_dump_initiator_port for ease of use

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_pr.c