Skip to content

Commit 06539d3

Browse files
Christoph Hellwigdavem330
authored andcommitted
net: don't OOPS on socket aio
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9afec6e commit 06539d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

net/socket.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -869,9 +869,6 @@ static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
869869
static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,
870870
struct sock_iocb *siocb)
871871
{
872-
if (!is_sync_kiocb(iocb))
873-
BUG();
874-
875872
siocb->kiocb = iocb;
876873
iocb->private = siocb;
877874
return siocb;

0 commit comments

Comments
 (0)