projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
568da76
)
[SCSI] mptfusion: Event data alignment with 4 byte.
author
Kashyap, Desai
<kashyap.desai@lsi.com>
Thu, 18 Mar 2010 13:54:20 +0000
(19:24 +0530)
committer
James Bottomley
<James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:24:12 +0000
(09:24 -0500)
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>
drivers/message/fusion/mptsas.h
patch
|
blob
|
history
diff --git
a/drivers/message/fusion/mptsas.h
b/drivers/message/fusion/mptsas.h
index 953c2bfcf6aaa470f05a0e3be18c966c05f3dc6b..7b249edbda784067cf3c3d8143eaea990cab2dca 100644
(file)
--- a/
drivers/message/fusion/mptsas.h
+++ b/
drivers/message/fusion/mptsas.h
@@
-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 {