AUDIT: Fix user pointer deref thinko in sys_socketcall().

I cunningly put the audit call immediately after the 
copy_from_user().... but used the _userspace_ copy of the args still. 
Let's not do that.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
David Woodhouse 2005-06-02 12:13:21 +01:00
parent 8f37d47c9b
commit 4bcff1b37e
1 changed files with 1 additions and 1 deletions

View File

@ -1908,7 +1908,7 @@ asmlinkage long sys_socketcall(int call, unsigned long __user *args)
if (copy_from_user(a, args, nargs[call]))
return -EFAULT;
err = audit_socketcall(nargs[call]/sizeof(unsigned long), args);
err = audit_socketcall(nargs[call]/sizeof(unsigned long), a);
if (err)
return err;