Skip to content

Commit

Permalink
[SCSI] mptfusion: Event data alignment with 4 byte.
Browse files Browse the repository at this point in the history
event_data needs to be 4 byte aligned to makes sure there is no unaligned
memory access take place.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
  • Loading branch information
Kashyap, Desai authored and James Bottomley committed Apr 11, 2010
1 parent 568da76 commit f18a892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/message/fusion/mptsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f18a892

Please sign in to comment.