diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-03-05 17:52:32 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2006-03-05 17:52:32 +0000 |
| commit | 327643e3caa81169d2b87a8ce6d2749e06685789 (patch) | |
| tree | 537deeb5cc5949e4402fa1098136b349cf7a01d9 /sys/dev/usb | |
| parent | 64de47b35ebd68db5d66cb851e6abd3d61a1748a (diff) | |
Notes
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 596860bfcfc48..4c9b4a79668ea 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; } } |
