Commit 3cee4c3f authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Linus Torvalds

[PATCH] fix type in compat_sys_fcntl64

[Pointed out by Bjorn Helgaas via Arun Sharma]

This fixes an obvious cut and paste error in my original patch.
parent a8605db7
...@@ -451,7 +451,6 @@ asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd, ...@@ -451,7 +451,6 @@ asmlinkage long compat_sys_fcntl64(unsigned int fd, unsigned int cmd,
break; break;
old_fs = get_fs(); old_fs = get_fs();
set_fs(KERNEL_DS); set_fs(KERNEL_DS);
ret = sys_fcntl(fd, F_GETLK, (unsigned long)&f);
ret = sys_fcntl(fd, (cmd == F_GETLK64) ? F_GETLK : ret = sys_fcntl(fd, (cmd == F_GETLK64) ? F_GETLK :
((cmd == F_SETLK64) ? F_SETLK : F_SETLKW), ((cmd == F_SETLK64) ? F_SETLK : F_SETLKW),
(unsigned long)&f); (unsigned long)&f);
......
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