tm6000: Use mask when getting XFERTYPE from bmAttributes
PATCH 3/4 tm6000: Use mask when getting XFERTYPE from bmAttributes
# HG changeset patch
# User Kevin Wells <[email protected]> # Date 1238885144 -43200
# Node ID 02d3a231b99e1eef922679f1381eecd0b9990d23 # Parent 3140e621a17b536eb1487f8f9ad5b7b6a8ff8341 Use mask when getting XFERTYPE from bmAttributes
From: Kevin Wells <[email protected]>
Priority: normal
Signed-off-by Kevin Wells <[email protected]>
linux/drivers/media/video/tm6000/tm6000-cards.c Sun Apr 05 10:45:44 2009 +1200 renamed from linux/drivers/media/video/tm6000/tm6000-cards.c Sat Apr 04 23:39:18 2009 +1300 +1 -1
@@ -446,7 +446,7 @@ interface->altsetting[i].desc.bInterfaceNumber, interface->altsetting[i].desc.bInterfaceClass); - switch (e->desc.bmAttributes) { + switch (e->desc.bmAttributes & USB_ENDPOINT_XFERTYPE_MASK) { case USB_ENDPOINT_XFER_BULK: if (!dir_out) { get_max_endpoint (usbdev, "Bulk IN", e,