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.
This commit is contained in:
Alexander Motin 2012-12-20 19:51:32 +00:00
parent c180b3986d
commit b2e6b2f87c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244508

View File

@ -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;