diff options
| author | Kenneth D. Merry <ken@FreeBSD.org> | 2012-01-12 00:34:33 +0000 |
|---|---|---|
| committer | Kenneth D. Merry <ken@FreeBSD.org> | 2012-01-12 00:34:33 +0000 |
| commit | 130f4520cba830cc6da47c9f871fed78710a4709 (patch) | |
| tree | 7946584ac02844d69b801e04e75ab025509c33de /sys/dev/ciss | |
| parent | ec3fc72f94b64840ffc88b4c376437ca7ee43fda (diff) | |
Notes
Diffstat (limited to 'sys/dev/ciss')
| -rw-r--r-- | sys/dev/ciss/ciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index b530de13d385..042d627a9e79 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -1614,7 +1614,7 @@ ciss_inquiry_logical(struct ciss_softc *sc, struct ciss_ldrive *ld) inq->opcode = INQUIRY; inq->byte2 = SI_EVPD; inq->page_code = CISS_VPD_LOGICAL_DRIVE_GEOMETRY; - inq->length = sizeof(ld->cl_geometry); + scsi_ulto2b(sizeof(ld->cl_geometry), inq->length); if ((error = ciss_synch_request(cr, 60 * 1000)) != 0) { ciss_printf(sc, "error getting geometry (%d)\n", error); |
