This patch fixes a mistake introduced by Matthias's usb-gadgetfs-use-helper-functions-to-determine-endpoint-type-and-direction conversion. Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> --- This probably should be merged in with Matthias's patch. Index: usb-2.6/drivers/usb/gadget/inode.c =================================================================== --- usb-2.6.orig/drivers/usb/gadget/inode.c +++ usb-2.6/drivers/usb/gadget/inode.c @@ -427,7 +427,7 @@ ep_write (struct file *fd, const char __ return value; /* halt any endpoint by doing a "wrong direction" i/o call */ - if (usb_endpoint_dir_in(&data->desc)) { + if (!usb_endpoint_dir_in(&data->desc)) { if (usb_endpoint_xfer_isoc(&data->desc)) return -EINVAL; DBG (data->dev, "%s halt\n", data->name); -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html