diff options
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index 2e71af67b5d8..dde094feb20d 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c | |||
@@ -297,8 +297,10 @@ int avtab_read_item(void *fp, u32 vers, struct avtab *a, | |||
297 | struct avtab_datum *d, void *p), | 297 | struct avtab_datum *d, void *p), |
298 | void *p) | 298 | void *p) |
299 | { | 299 | { |
300 | u16 buf16[4], enabled; | 300 | __le16 buf16[4]; |
301 | u32 buf32[7], items, items2, val; | 301 | u16 enabled; |
302 | __le32 buf32[7]; | ||
303 | u32 items, items2, val; | ||
302 | struct avtab_key key; | 304 | struct avtab_key key; |
303 | struct avtab_datum datum; | 305 | struct avtab_datum datum; |
304 | int i, rc; | 306 | int i, rc; |
@@ -403,7 +405,7 @@ static int avtab_insertf(struct avtab *a, struct avtab_key *k, | |||
403 | int avtab_read(struct avtab *a, void *fp, u32 vers) | 405 | int avtab_read(struct avtab *a, void *fp, u32 vers) |
404 | { | 406 | { |
405 | int rc; | 407 | int rc; |
406 | u32 buf[1]; | 408 | __le32 buf[1]; |
407 | u32 nel, i; | 409 | u32 nel, i; |
408 | 410 | ||
409 | 411 | ||