Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142132915
D49469.id154866.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
786 B
Referenced Files
None
Subscribers
None
D49469.id154866.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D49469: umass: Simplify umass_std_transform to eliminate fake success
Attached
Detach File
Event Timeline
Log In to Comment