Page MenuHomeFreeBSD

D49469.id154866.diff
No OneTemporary

D49469.id154866.diff

diff --git a/sys/dev/usb/storage/umass.c b/sys/dev/usb/storage/umass.c
--- a/sys/dev/usb/storage/umass.c
+++ b/sys/dev/usb/storage/umass.c
@@ -2949,20 +2949,13 @@
{
uint8_t retval;
- retval = (sc->sc_transform) (sc, cmd, cmdlen);
+ if (sc->sc_transform(sc, cmd, cmdlen))
+ return (1); /* Execute command */
- if (retval == 2) {
- ccb->ccb_h.status = CAM_REQ_CMP;
- xpt_done(ccb);
- return (0);
- } else if (retval == 0) {
- xpt_freeze_devq(ccb->ccb_h.path, 1);
- ccb->ccb_h.status = CAM_REQ_INVALID | CAM_DEV_QFRZN;
- xpt_done(ccb);
- return (0);
- }
- /* Command should be executed */
- return (1);
+ xpt_freeze_devq(ccb->ccb_h.path, 1);
+ ccb->ccb_h.status = CAM_REQ_INVALID | CAM_DEV_QFRZN;
+ xpt_done(ccb);
+ return (0); /* Already failed */
}
#ifdef USB_DEBUG

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 17, 8:27 AM (36 m, 19 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27680470
Default Alt Text
D49469.id154866.diff (786 B)

Event Timeline