summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Smith <kensmith@FreeBSD.org>2006-12-23 02:03:40 +0000
committerKen Smith <kensmith@FreeBSD.org>2006-12-23 02:03:40 +0000
commit95c80aeaaee24554f0b2214444b1991bc948de98 (patch)
tree11aae1a38c9b5af967196aeac9f887977266fadd
parent852712a0862c2a27ecfb01b7bd67c46aef4d6e5b (diff)
Notes
-rw-r--r--sys/dev/usb/umass.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c
index d92638fc0218..035b89211e33 100644
--- a/sys/dev/usb/umass.c
+++ b/sys/dev/usb/umass.c
@@ -3112,9 +3112,11 @@ umass_atapi_transform(struct umass_softc *sc, unsigned char *cmd, int cmdlen,
case READ_12:
case WRITE_12:
default:
- printf("%s: Unsupported ATAPI command 0x%02x\n",
+ printf("%s: Unsupported ATAPI command 0x%02x"
+ " - trying anyway\n",
USBDEVNAME(sc->sc_dev), cmd[0]);
- return 0; /* failure */
+ memcpy(*rcmd, cmd, cmdlen);
+ return 1;
}
}