Commit be523044 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Remove bogus sys_oldumount sign extension code

From: Anton Blanchard <anton@samba.org>

Remove bogus sys_oldumount sign extension code. We were sign extending
the flags argument which doesnt make sense.
parent 63477af1
...@@ -624,7 +624,7 @@ _GLOBAL(sys_call_table32) ...@@ -624,7 +624,7 @@ _GLOBAL(sys_call_table32)
.llong .sys_geteuid .llong .sys_geteuid
.llong .sys_getegid /* 50 */ .llong .sys_getegid /* 50 */
.llong .sys_acct .llong .sys_acct
.llong .sys32_umount .llong .sys_umount
.llong .sys_ni_syscall /* old lock syscall */ .llong .sys_ni_syscall /* old lock syscall */
.llong .compat_sys_ioctl .llong .compat_sys_ioctl
.llong .compat_sys_fcntl /* 55 */ .llong .compat_sys_fcntl /* 55 */
......
...@@ -2577,17 +2577,6 @@ asmlinkage long sys32_umask(u32 mask) ...@@ -2577,17 +2577,6 @@ asmlinkage long sys32_umask(u32 mask)
return sys_umask((int)mask); return sys_umask((int)mask);
} }
/* Note: it is necessary to treat flags as an unsigned int,
* with the corresponding cast to a signed int to insure that the
* proper conversion (sign extension) between the register representation of a signed int (msr in 32-bit mode)
* and the register representation of a signed int (msr in 64-bit mode) is performed.
*/
asmlinkage long sys32_umount(char * name, u32 flags)
{
return sys_umount(name, (int)flags);
}
struct __sysctl_args32 { struct __sysctl_args32 {
u32 name; u32 name;
int nlen; int nlen;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment