projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f697531
)
xhci: Bigendian fix for xhci_check_bandwidth()
author
Matt Evans
<
[email protected]
>
Wed, 1 Jun 2011 03:01:07 +0000
(13:01 +1000)
committer
Sarah Sharp
<
[email protected]
>
Thu, 2 Jun 2011 21:40:23 +0000
(14:40 -0700)
Commit
834cb0fc4712a3b21c6b8c5cb55bd13607191311
"xhci: Fix memory leak
bug when dropping endpoints" added a small endian bug. This patch fixes
xhci_check_bandwidth() to read add/drop_flags LE.
Signed-off-by: Matt Evans <
[email protected]
>
Signed-off-by: Sarah Sharp <
[email protected]
>
drivers/usb/host/xhci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci.c
b/drivers/usb/host/xhci.c
index d9660eb97eb9a4ede02ff49111b46d71d4ac89bb..ecd202101617963805962f5c37732a3112badc7d 100644
(file)
--- a/
drivers/usb/host/xhci.c
+++ b/
drivers/usb/host/xhci.c
@@
-1849,8
+1849,8
@@
int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev)
/* Free any rings that were dropped, but not changed. */
for (i = 1; i < 31; ++i) {
- if ((
ctrl_ctx->drop_flags
& (1 << (i + 1))) &&
-
!(ctrl_ctx->add_flags
& (1 << (i + 1))))
+ if ((
le32_to_cpu(ctrl_ctx->drop_flags)
& (1 << (i + 1))) &&
+
!(le32_to_cpu(ctrl_ctx->add_flags)
& (1 << (i + 1))))
xhci_free_or_cache_endpoint_ring(xhci, virt_dev, i);
}
xhci_zero_in_ctx(xhci, virt_dev);