diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/libfc/fc_disc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 819ec6256a53..844376c1d8dc 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c | |||
@@ -606,6 +606,7 @@ static void fc_disc_gpn_ft_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
606 | if (!cp) { | 606 | if (!cp) { |
607 | FC_DISC_DBG(disc, "GPN_FT response too short, len %d\n", | 607 | FC_DISC_DBG(disc, "GPN_FT response too short, len %d\n", |
608 | fr_len(fp)); | 608 | fr_len(fp)); |
609 | event = DISC_EV_FAILED; | ||
609 | } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { | 610 | } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { |
610 | 611 | ||
611 | /* Accepted, parse the response. */ | 612 | /* Accepted, parse the response. */ |
@@ -619,6 +620,7 @@ static void fc_disc_gpn_ft_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
619 | } else { | 620 | } else { |
620 | FC_DISC_DBG(disc, "GPN_FT unexpected response code " | 621 | FC_DISC_DBG(disc, "GPN_FT unexpected response code " |
621 | "%x\n", ntohs(cp->ct_cmd)); | 622 | "%x\n", ntohs(cp->ct_cmd)); |
623 | event = DISC_EV_FAILED; | ||
622 | } | 624 | } |
623 | } else if (fr_sof(fp) == FC_SOF_N3 && seq_cnt == disc->seq_count) { | 625 | } else if (fr_sof(fp) == FC_SOF_N3 && seq_cnt == disc->seq_count) { |
624 | error = fc_disc_gpn_ft_parse(disc, fh + 1, len); | 626 | error = fc_disc_gpn_ft_parse(disc, fh + 1, len); |
@@ -626,6 +628,7 @@ static void fc_disc_gpn_ft_resp(struct fc_seq *sp, struct fc_frame *fp, | |||
626 | FC_DISC_DBG(disc, "GPN_FT unexpected frame - out of sequence? " | 628 | FC_DISC_DBG(disc, "GPN_FT unexpected frame - out of sequence? " |
627 | "seq_cnt %x expected %x sof %x eof %x\n", | 629 | "seq_cnt %x expected %x sof %x eof %x\n", |
628 | seq_cnt, disc->seq_count, fr_sof(fp), fr_eof(fp)); | 630 | seq_cnt, disc->seq_count, fr_sof(fp), fr_eof(fp)); |
631 | event = DISC_EV_FAILED; | ||
629 | } | 632 | } |
630 | if (error) | 633 | if (error) |
631 | fc_disc_error(disc, fp); | 634 | fc_disc_error(disc, fp); |