svn commit: r244508 - head/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Thu Dec 20 19:51:33 UTC 2012


Author: mav
Date: Thu Dec 20 19:51:32 2012
New Revision: 244508
URL: http://svnweb.freebsd.org/changeset/base/244508

Log:
  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.

Modified:
  head/sys/cam/scsi/scsi_enc_ses.c

Modified: head/sys/cam/scsi/scsi_enc_ses.c
==============================================================================
--- head/sys/cam/scsi/scsi_enc_ses.c	Thu Dec 20 19:47:46 2012	(r244507)
+++ head/sys/cam/scsi/scsi_enc_ses.c	Thu Dec 20 19:51:32 2012	(r244508)
@@ -1801,8 +1801,7 @@ ses_process_elm_addlstatus(enc_softc_t *
 			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_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;


More information about the svn-src-all mailing list