Addition to r228808:

READ CD is a 12 byte command. So fill additional bytes and update CDB length
when patching READ(10).

MFC after:	1 month
This commit is contained in:
Alexander Motin 2011-12-23 19:53:28 +00:00
parent f67daabb25
commit 2789ec41bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228847

View File

@ -1487,6 +1487,9 @@ cdstart(struct cam_periph *periph, union ccb *start_ccb)
if (softc->params.blksize == 2352) {
start_ccb->csio.cdb_io.cdb_bytes[0] = READ_CD;
start_ccb->csio.cdb_io.cdb_bytes[9] = 0xf8;
start_ccb->csio.cdb_io.cdb_bytes[10] = 0;
start_ccb->csio.cdb_io.cdb_bytes[11] = 0;
start_ccb->csio.cdb_len = 12;
}
start_ccb->ccb_h.ccb_state = CD_CCB_BUFFER_IO;