net: don't OOPS on socket aio
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jan 2015 20:25:33 +0000 (12:25 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 20:25:33 +0000 (12:25 -0800)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/socket.c

index a2c33a4..418795c 100644 (file)
@@ -869,9 +869,6 @@ static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
 static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,
                                         struct sock_iocb *siocb)
 {
-       if (!is_sync_kiocb(iocb))
-               BUG();
-
        siocb->kiocb = iocb;
        iocb->private = siocb;
        return siocb;