Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221472
b: refs/heads/master
c: 60a3c4d
h: refs/heads/master
v: v3
  • Loading branch information
Vasu Dev authored and James Bottomley committed Oct 25, 2010
1 parent 00e1713 commit ff4544b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75eee7252466342e0dfa6675106bcd3955090f67
refs/heads/master: 60a3c4dfb7830845a97a20e73b7d938dc2fde6c1
12 changes: 4 additions & 8 deletions trunk/drivers/scsi/libfc/fc_lport.c
Original file line number Diff line number Diff line change
Expand Up @@ -1447,13 +1447,7 @@ void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
}

did = fc_frame_did(fp);

if (!did) {
FC_LPORT_DBG(lport, "Bad FLOGI response\n");
goto out;
}

if (fc_frame_payload_op(fp) == ELS_LS_ACC) {
if (fc_frame_payload_op(fp) == ELS_LS_ACC && did) {
flp = fc_frame_payload_get(fp, sizeof(*flp));
if (flp) {
mfs = ntohs(flp->fl_csp.sp_bb_data) &
Expand Down Expand Up @@ -1492,8 +1486,10 @@ void fc_lport_flogi_resp(struct fc_seq *sp, struct fc_frame *fp,
fc_lport_enter_dns(lport);
}
}
} else
} else {
FC_LPORT_DBG(lport, "FLOGI RJT or bad response\n");
fc_lport_error(lport, fp);
}

out:
fc_frame_free(fp);
Expand Down

0 comments on commit ff4544b

Please sign in to comment.