summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2012-12-20 19:51:32 +0000
committermav <mav@FreeBSD.org>2012-12-20 19:51:32 +0000
commitd3671c16774fee9f93f6fee356abc29825f0446a (patch)
tree35d4ba10be281bba833685598621e9091c68f428 /sys/cam
parentaae8cd90ccb7c0a7f3c5b8ca26756719886249bc (diff)
downloadFreeBSD-src-d3671c16774fee9f93f6fee356abc29825f0446a.zip
FreeBSD-src-d3671c16774fee9f93f6fee356abc29825f0446a.tar.gz
Make SES driver to not fall out on some errors in Additional Status page.
This allows CAM devices still get their physical paths even if status of later elements it corrupted. Sponsored by: iXsystems, Inc.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_enc_ses.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cam/scsi/scsi_enc_ses.c b/sys/cam/scsi/scsi_enc_ses.c
index 05a1241..79e96db 100644
--- a/sys/cam/scsi/scsi_enc_ses.c
+++ b/sys/cam/scsi/scsi_enc_ses.c
@@ -1801,8 +1801,7 @@ ses_process_elm_addlstatus(enc_softc_t *enc, struct enc_fsm_state *state,
ENC_VLOG(enc, "Element %d Beyond End "
"of Additional Element Status Descriptors\n",
iter.global_element_index);
- err = EIO;
- goto out;
+ break;
}
/* Advance to the protocol data, skipping eip bytes if needed */
@@ -1831,7 +1830,7 @@ ses_process_elm_addlstatus(enc_softc_t *enc, struct enc_fsm_state *state,
ENC_VLOG(enc, "Element %d: Unknown Additional Element "
"Protocol 0x%x\n", iter.global_element_index,
ses_elm_addlstatus_proto(elmpriv->addl.hdr));
- goto out;
+ break;
}
offset += proto_info_len;
OpenPOWER on IntegriCloud