mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
USB: Fix alignment of buffer passed down to ->hub_control()
Implementations assume the buffer is at least 4 byte aligned. Signed-off-by: David S. Miller <[email protected]> Cc: David Brownell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a14848275b
commit
54bee6e1b4
1 changed files with 2 additions and 1 deletions
|
|
@ -345,7 +345,8 @@ static int rh_call_control (struct usb_hcd *hcd, struct urb *urb)
|
|||
struct usb_ctrlrequest *cmd;
|
||||
u16 typeReq, wValue, wIndex, wLength;
|
||||
u8 *ubuf = urb->transfer_buffer;
|
||||
u8 tbuf [sizeof (struct usb_hub_descriptor)];
|
||||
u8 tbuf [sizeof (struct usb_hub_descriptor)]
|
||||
__attribute__((aligned(4)));
|
||||
const u8 *bufp = tbuf;
|
||||
int len = 0;
|
||||
int patch_wakeup = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue