diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-02-02 16:11:51 +1100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 22:04:33 -0800 |
commit | 9ad11ab48b1ad618bf47076e9e579f267f5306c2 (patch) | |
tree | b0b06f4455d9796fc5003add2067f2dbc225fc53 /drivers/acpi/executer/exresnte.c | |
parent | 8aeba3c62a64e0f6527d1a0388b1a6a7060158ba (diff) |
[PATCH] compat: fix compat_sys_openat and friends
Most of the 64 bit architectures will zero extend the first argument to
compat_sys_{openat,newfstatat,futimesat} which will fail if the 32 bit
syscall was passed AT_FDCWD (which is a small negative number). Declare
the first argument to be an unsigned int which will force the correct
sign extension when the internal functions are called in each case.
Also, do some small white space cleanups in fs/compat.c.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/acpi/executer/exresnte.c')
0 files changed, 0 insertions, 0 deletions