]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/socket.c
xfrm: For 32/64 compatability wrt. xfrm_usersa_info
[karo-tx-linux.git] / net / socket.c
index b41a92093e40ba0a03f71a61dd1db7e00fee9ea9..06603d73c411839fa78c58b84d5851805b0111d0 100644 (file)
@@ -1313,13 +1313,7 @@ asmlinkage long sys_socketpair(int family, int type, int protocol,
                goto out_fd1;
        }
 
-       err = audit_fd_pair(fd1, fd2);
-       if (err < 0) {
-               fput(newfile1);
-               fput(newfile2);
-               goto out_fd;
-       }
-
+       audit_fd_pair(fd1, fd2);
        fd_install(fd1, newfile1);
        fd_install(fd2, newfile2);
        /* fd1 and fd2 may be already another descriptors.
@@ -1349,7 +1343,6 @@ out_fd2:
 out_fd1:
        put_filp(newfile2);
        sock_release(sock2);
-out_fd:
        put_unused_fd(fd1);
        put_unused_fd(fd2);
        goto out;