commit | 06539d3071067ff146a9bffd1c801fa56d290909 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Tue Jan 27 12:25:33 2015 -0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Jan 27 12:25:33 2015 -0800 |
tree | 50f98313af70fdfe9d43ab5a18da4e425584952e | |
parent | 9afec6efc6b1043692eada758cd7837623dd943b [diff] |
net: don't OOPS on socket aio Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/socket.c b/net/socket.c index a2c33a4..418795c 100644 --- a/net/socket.c +++ b/net/socket.c
@@ -869,9 +869,6 @@ 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;