提交 f18a8927 编写于 作者: K Kashyap, Desai 提交者: James Bottomley

[SCSI] 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.
Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
上级 568da769
...@@ -110,7 +110,7 @@ struct fw_event_work { ...@@ -110,7 +110,7 @@ struct fw_event_work {
MPT_ADAPTER *ioc; MPT_ADAPTER *ioc;
u32 event; u32 event;
u8 retries; u8 retries;
u8 event_data[1]; u8 __attribute__((aligned(4))) event_data[1];
}; };
struct mptsas_discovery_event { struct mptsas_discovery_event {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册