[PATCH 1/1] Staging: hv: Fix vmbus load hang caused by faulty datapacking

From: Hank Janssen
Date: Fri Oct 16 2009 - 17:16:00 EST



From: Hank Janssen <hjanssen@xxxxxxxxxxxxx>

Fix vmbus load hang caused by wrong data packing.
This fix needs to be applied to 2.6.32 as well.

Cc: Greg Kroah-Hartman <gregkh@xxxxxxx>
Signed-off-by: Hank Janssen<hjanssen@xxxxxxxxxxxxx>
Signed-off-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>

---
diff --git a/drivers/staging/hv/ChannelMgmt.h b/drivers/staging/hv/ChannelMgmt.h
index a839d8f..2782328 100644
--- a/drivers/staging/hv/ChannelMgmt.h
+++ b/drivers/staging/hv/ChannelMgmt.h
@@ -54,7 +54,7 @@ enum vmbus_channel_message_type {
ChannelMessageViewRangeRemove = 18,
#endif
ChannelMessageCount
-} __attribute__((packed));
+};

struct vmbus_channel_message_header {
enum vmbus_channel_message_type MessageType;

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