From: Bart Westgeest Date: Mon, 11 Jun 2012 16:13:08 +0000 (-0400) Subject: staging: usbip: bugfix for stack corruption on 64-bit architectures X-Git-Tag: v3.5-rc4~16^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08224262adefb5e6460888b2490a96e1bc28aef5;p=platform%2Fkernel%2Flinux-3.10.git staging: usbip: bugfix for stack corruption on 64-bit architectures Previously a 6 byte array (buf) was erroneously cast to a 8 byte long (event_bits) on 64-bit architectures which caused a stack corruption. Signed-off-by: Bart Westgeest Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c index f708cba..117a7ad 100644 --- a/drivers/staging/usbip/vhci_hcd.c +++ b/drivers/staging/usbip/vhci_hcd.c @@ -205,7 +205,7 @@ static int vhci_hub_status(struct usb_hcd *hcd, char *buf) int retval = 0; /* the enough buffer is allocated according to USB_MAXCHILDREN */ - unsigned long *event_bits = (unsigned long *) buf; + u32 *event_bits = (unsigned long *) buf; int rhport; int changed = 0;