From b7553e30c636f469ddceacbe541620cdab2dc433 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 24 Oct 2011 09:18:46 +0800 Subject: [PATCH] Kernel - Made tFInfo packed to fix size mismatches between user and kernel land --- Kernel/include/vfs_ext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index e8cd2420..d7d74c40 100644 --- a/Kernel/include/vfs_ext.h +++ b/Kernel/include/vfs_ext.h @@ -118,7 +118,7 @@ typedef struct sVFS_ACL unsigned Inv: 1; //!< Invert Permissions unsigned Perms: 31; //!< Permission Flags }; -} tVFS_ACL; +} tVFS_ACL; /** * \brief SYS_FINFO structure @@ -136,7 +136,7 @@ typedef struct sFInfo Sint64 ctime; //!< Creation time Sint32 numacls; //!< Total number of ACL entries tVFS_ACL acls[]; //!< ACL buffer (size is passed in the \a MaxACLs argument to VFS_FInfo) -} tFInfo; +} PACKED tFInfo; /** * \brief fd_set for select() -- 2.20.1