https://github.com/torvalds/linux
Revision 9ad11ab48b1ad618bf47076e9e579f267f5306c2 authored by Stephen Rothwell on 02 February 2006, 05:11:51 UTC, committed by Linus Torvalds on 02 February 2006, 06:04:33 UTC
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>
1 parent 8aeba3c
History
Tip revision: 9ad11ab48b1ad618bf47076e9e579f267f5306c2 authored by Stephen Rothwell on 02 February 2006, 05:11:51 UTC
[PATCH] compat: fix compat_sys_openat and friends
Tip revision: 9ad11ab
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 424 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 65.7 KB
Makefile -rw-r--r-- 43.8 KB
README -rw-r--r-- 15.1 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top