mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
sanitize audit_socketcall
* don't bother with allocations * now that it can't fail, make it return void Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
4f6b434fee
commit
f3298dc4f2
3 changed files with 41 additions and 33 deletions
|
@ -2065,9 +2065,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), a);
|
||||
if (err)
|
||||
return err;
|
||||
audit_socketcall(nargs[call] / sizeof(unsigned long), a);
|
||||
|
||||
a0 = a[0];
|
||||
a1 = a[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue