]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/socket.c
ARM: OMAP: GPIO IRQSTATUS2 workaround applies to 2430
[linux-2.6-omap-h63xx.git] / net / socket.c
index ec077037f534b6a3265342fc0ccfd1dd56893505..b09eb9036a17a3563e9ad5ca08a1734b86aa0df5 100644 (file)
@@ -777,9 +777,6 @@ static ssize_t sock_aio_write(struct kiocb *iocb, const struct iovec *iov,
        if (pos != 0)
                return -ESPIPE;
 
-       if (iocb->ki_left == 0) /* Match SYS5 behaviour */
-               return 0;
-
        x = alloc_sock_iocb(iocb, &siocb);
        if (!x)
                return -ENOMEM;
@@ -1168,7 +1165,7 @@ static int __sock_create(int family, int type, int protocol,
        module_put(pf->owner);
        err = security_socket_post_create(sock, family, type, protocol, kern);
        if (err)
-               goto out_release;
+               goto out_sock_release;
        *res = sock;
 
        return 0;