mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
sanitize audit_socketcall
* don't bother with allocations * now that it can't fail, make it return void Signed-off-by: Al Viro <[email protected]>
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…
Reference in a new issue