Re: drivers/staging/usbip/vhci_hcd.c:208:21: warning: initialization from incompatible pointer type [enabled by default]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 12, 2012 at 09:08:21AM +0800, wfg@xxxxxxxxxxxxxxx wrote:
> >From 08224262adefb5e6460888b2490a96e1bc28aef5 Mon Sep 17 00:00:00 2001
> From: Bart Westgeest <bart@xxxxxxxxxx>
> Date: Mon, 11 Jun 2012 12:13:08 -0400
> Subject: [PATCH] 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@xxxxxxxxxx>

Obviously, we need to update the cast, but shouldn't we care about
endianness here as well?

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux