Fix an argument reversal in calls to scsi_read_element_status().

Reported by:	Ulrich Spoerlein <uqs@FreeBSD.org>
MFC after:	3 days
This commit is contained in:
ken 2013-07-15 16:38:48 +00:00
parent 998db3fe4a
commit b8930f9894

View File

@ -1274,8 +1274,8 @@ chgetelemstatus(struct cam_periph *periph, int scsi_version, u_long cmd,
/* tag_action */ MSG_SIMPLE_Q_TAG,
/* voltag */ want_voltags,
/* sea */ softc->sc_firsts[chet],
/* dvcid */ dvcid,
/* curdata */ curdata,
/* dvcid */ dvcid,
/* count */ 1,
/* data_ptr */ data,
/* dxfer_len */ 1024,
@ -1342,8 +1342,8 @@ chgetelemstatus(struct cam_periph *periph, int scsi_version, u_long cmd,
/* voltag */ want_voltags,
/* sea */ softc->sc_firsts[chet]
+ cesr->cesr_element_base,
/* dvcid */ dvcid,
/* curdata */ curdata,
/* dvcid */ dvcid,
/* count */ cesr->cesr_element_count,
/* data_ptr */ data,
/* dxfer_len */ size,