diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c index 871ae21870be9515a526f78d84ccfbd54e875ae6..a5449070981101aa0d7566c519a28bfad1a756c2 100644 --- a/drivers/target/target_core_pr.c +++ b/drivers/target/target_core_pr.c @@ -58,8 +58,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); }