[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1175832169.17315.61.camel@roc-desktop>
Date: Fri, 06 Apr 2007 12:02:49 +0800
From: "Wu, Bryan" <bryan.wu@...log.com>
To: David Brownell <david-b@...bell.net>, jie.zhang@...log.com,
roy.huang@...log.com, linux-kernel@...r.kernel.org,
Andrew Morton <akpm@...ux-foundation.org>, bryan.wu@...log.com
Subject: [PATCH] USB gadget rndis: fix struct rndis_packet_msg_type
unaligned bug
[PATCH] usb gadget rndis:
skb_push function may return a pointer which is not aligned as required
by struct rndis_packet_msg_type. Using attribute trick to fix this bug.
Signed-off-by: Roy Huang <roy.huang@...log.com>
Signed-off-by: Jie Zhang <jie.zhang@...log.com>
Signed-off-by: Bryan Wu <bryan.wu@...log.com>
---
drivers/usb/gadget/rndis.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/usb/gadget/rndis.h b/drivers/usb/gadget/rndis.h
index 4c3c725..397b149 100644
--- a/drivers/usb/gadget/rndis.h
+++ b/drivers/usb/gadget/rndis.h
@@ -195,7 +195,7 @@ struct rndis_packet_msg_type
__le32 PerPacketInfoLength;
__le32 VcHandle;
__le32 Reserved;
-};
+} __attribute__ ((packed));
struct rndis_config_parameter
{
--
1.5.0.5
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists