target:fix condition return in core_pr_dump_initiator_port()
[ Upstream commit 24528f089d0a444070aa4f715ace537e8d6bf168 ]
When is pr_reg->isid_present_at_reg is false,this function should return.
This fixes a regression originally introduced by:
commit d2843c173e
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e14086b2c9
commit
646191449e
1 changed files with 3 additions and 1 deletions
|
@ -56,8 +56,10 @@ void core_pr_dump_initiator_port(
|
|||
char *buf,
|
||||
u32 size)
|
||||
{
|
||||
if (!pr_reg->isid_present_at_reg)
|
||||
if (!pr_reg->isid_present_at_reg) {
|
||||
buf[0] = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
snprintf(buf, size, ",i,0x%s", pr_reg->pr_reg_isid);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue