Skip to content

Commit

Permalink
net: don't OOPS on socket aio
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Christoph Hellwig authored and davem330 committed Jan 27, 2015
1 parent 9afec6e commit 06539d3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 06539d3

Please sign in to comment.