Re: [PATCH] USB gadget rndis: fix bug skb_push function may return an unaligned pointer bug

From: David Brownell
Date: Thu Apr 05 2007 - 17:56:31 EST


On Tuesday 03 April 2007 11:28 pm, Wu, Bryan wrote:
> USB gadget rndis: skb_push function may return a pointer which is not
> aligned as required by struct rndis_packet_msg_type.

Can you instead try to update the declaration of that struct
so that it's "__attribute__((packed))"? That's less invasive,
and will address similar issues elsewhere ...

- Dave
-
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/