On Fri, Dec 06, 2013 at 11:59:26PM -0500, Ilia Mirkin wrote:
> The first 8 bytes of skb->cb are used to store a struct net_device *.
> Adjust the memcpy's src/dst types to reflect that.
> 
> Signed-off-by: Ilia Mirkin <imir...@alum.mit.edu>

This isn't right.  The correct fix is just to remove all the casting.

        memcpy(skb->cb, &dev, sizeof(dev));

regards,
dan carpenter


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

Reply via email to