diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2006-02-02 06:11:51 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-02 07:04:33 +0100 |
commit | 9ad11ab48b1ad618bf47076e9e579f267f5306c2 (patch) | |
tree | b0b06f4455d9796fc5003add2067f2dbc225fc53 /drivers/parisc/hppb.c | |
parent | Merge master.kernel.org:/pub/scm/linux/kernel/git/sfrench/cifs-2.6 (diff) | |
download | linux-9ad11ab48b1ad618bf47076e9e579f267f5306c2.tar.xz linux-9ad11ab48b1ad618bf47076e9e579f267f5306c2.zip |
[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/parisc/hppb.c')
0 files changed, 0 insertions, 0 deletions