diff options
author | phk <phk@FreeBSD.org> | 2006-03-05 17:52:32 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2006-03-05 17:52:32 +0000 |
commit | 182ee5abd3c41001929cb318f8df6696fb4f4ac4 (patch) | |
tree | 537deeb5cc5949e4402fa1098136b349cf7a01d9 /sys/dev/usb | |
parent | 85ffacb8d1b42696e5b94c8afb94da49b1e59494 (diff) | |
download | FreeBSD-src-182ee5abd3c41001929cb318f8df6696fb4f4ac4.zip FreeBSD-src-182ee5abd3c41001929cb318f8df6696fb4f4ac4.tar.gz |
When we get an unknown ATAPI comand, try it even if it is not listed,
in all likelyhood just passing it through will work.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/umass.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 596860b..4c9b4a7 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -3104,9 +3104,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; } } |