Skip to contentSkip to conversation

mptfusion: Event data alignment with 4 byte.

PATCH In review Kashyap, Desai 1 participant 1 message Mar 18, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 10/12 mptfusion: Event data alignment with 4 byte.

event_data needs to be 4 byte aligned to makes sure there is no unaligned memory access take place.

---

drivers/message/fusion/mptsas.h +1 -1
index 953c2bf..7b249ed 100644
@@ -110,7 +110,7 @@ struct fw_event_work {
 	MPT_ADAPTER	*ioc;
 	u32			event;
 	u8			retries;
-	u8			event_data[1];
+	u8			__attribute__((aligned(4))) event_data[1];
 };
 
 struct mptsas_discovery_event {