summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorBart Westgeest2012-06-11 18:13:08 +0200
committerGreg Kroah-Hartman2012-06-12 02:03:50 +0200
commit08224262adefb5e6460888b2490a96e1bc28aef5 (patch)
treeb322967341db2c3339ad487361c2f889a3b8761a /drivers/staging
parentstaging/comedi: fix build for USB not enabled (diff)
downloadkernel-qcow2-linux-08224262adefb5e6460888b2490a96e1bc28aef5.tar.gz
kernel-qcow2-linux-08224262adefb5e6460888b2490a96e1bc28aef5.tar.xz
kernel-qcow2-linux-08224262adefb5e6460888b2490a96e1bc28aef5.zip
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 <bart@elbrys.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/usbip/vhci_hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c
index f708cbaee16b..117a7ad9fdb1 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;