From: Christoph Hellwig Date: Tue, 27 Jan 2015 20:25:33 +0000 (-0800) Subject: net: don't OOPS on socket aio X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06539d3071067ff146a9bffd1c801fa56d290909;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net: don't OOPS on socket aio Signed-off-by: Christoph Hellwig Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index a2c33a4dc7ba..418795caa897 100644 --- a/net/socket.c +++ b/net/socket.c @@ -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;