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 <imirkin@xxxxxxxxxxxx> 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 devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel