Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06539d30 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller
Browse files

net: don't OOPS on socket aio

parent 9afec6ef
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;