From b8930f9894200728d68dab5751a9611333d3caba Mon Sep 17 00:00:00 2001 From: ken Date: Mon, 15 Jul 2013 16:38:48 +0000 Subject: [PATCH] Fix an argument reversal in calls to scsi_read_element_status(). Reported by: Ulrich Spoerlein MFC after: 3 days --- sys/cam/scsi/scsi_ch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index 2a8bab5b382a..2aad04c2ad83 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -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,