aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2008-12-10 03:16:51 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2009-01-04 15:14:39 -0500
commitf3298dc4f2277874d40cb4fc3a6e277317d6603b (patch)
tree8ba8f7e7a0597965b2f6c7106718a59cc164eab1 /net
parent4f6b434fee2402b3decdeae9d16eb648725ae426 (diff)
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>
Diffstat (limited to 'net')
-rw-r--r--net/socket.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/socket.c b/net/socket.c
index 2c730fc718ab..b41a92093e40 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -2065,9 +2065,7 @@ asmlinkage long sys_socketcall(int call, unsigned long __user *args)
2065 if (copy_from_user(a, args, nargs[call])) 2065 if (copy_from_user(a, args, nargs[call]))
2066 return -EFAULT; 2066 return -EFAULT;
2067 2067
2068 err = audit_socketcall(nargs[call] / sizeof(unsigned long), a); 2068 audit_socketcall(nargs[call] / sizeof(unsigned long), a);
2069 if (err)
2070 return err;
2071 2069
2072 a0 = a[0]; 2070 a0 = a[0];
2073 a1 = a[1]; 2071 a1 = a[1];