Fix up the command in the destination buffer, not the source.
This makes the conversion from Test-Unit-Ready to Start-Stop-Unit in the case of SCSI (Iomega Zip drive) actually work.
This commit is contained in:
parent
055aefb1bc
commit
50b37103a2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64886
@ -2565,8 +2565,8 @@ umass_scsi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
|
||||
DPRINTF(UDMASS_SCSI, ("%s: Converted TEST_UNIT_READY "
|
||||
"to START_UNIT\n", USBDEVNAME(sc->sc_dev)));
|
||||
memset(*rcmd, 0, *rcmdlen);
|
||||
cmd[0] = START_STOP_UNIT;
|
||||
cmd[4] = SSS_START;
|
||||
(*rcmd)[0] = START_STOP_UNIT;
|
||||
(*rcmd)[4] = SSS_START;
|
||||
return 1;
|
||||
}
|
||||
/* fallthrough */
|
||||
|
Loading…
Reference in New Issue
Block a user