Re: [PROBLEM]: potential unaligned memory access in drivers/usb/gadget/rndis.c

From: David Brownell
Date: Mon Mar 16 2009 - 04:38:49 EST


On Wednesday 11 March 2009, Andrew Morton wrote:
>
> > It happened to me that skb_pull() returns a pointer to a
> > location not aligned on a 4 bytes boundary.

Does this arch set NET_IP_ALIGN appropriately?

If worst comes to worst, use put_unaligned() instead of
a static (non-const) template for that header.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/