Commit 7bd7f8d7 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

[PATCH] one liner, anti-oops

This fixes a potential oops (depending on how the HCD handles it)
from a recent patch of mine.  Evidently I didn't test this bit a
device that'd show the problem, sigh.  Luckily Martin Diehl was
testing and found this.
parent d58c71a0
......@@ -847,7 +847,7 @@ int usb_set_interface(struct usb_device *dev, int interface, int alternate)
ep &= USB_ENDPOINT_NUMBER_MASK;
usb_settoggle (dev, ep, out, 0);
(out ? dev->epmaxpacketout : dev->epmaxpacketin) [ep]
= iface_as->endpoint [ep].wMaxPacketSize;
= iface_as->endpoint [i].wMaxPacketSize;
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment