diff options
author | Christoph Hellwig <hch@lst.de> | 2015-01-27 21:25:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-27 21:25:33 +0100 |
commit | 06539d3071067ff146a9bffd1c801fa56d290909 (patch) | |
tree | 50f98313af70fdfe9d43ab5a18da4e425584952e /net/socket.c | |
parent | stmmac: prevent probe drivers to crash kernel (diff) | |
download | linux-06539d3071067ff146a9bffd1c801fa56d290909.tar.xz linux-06539d3071067ff146a9bffd1c801fa56d290909.zip |
net: don't OOPS on socket aio
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |