Commit 498715877b462fc37631699b4a9d32886d7e17f4

Authored by Christoph Hellwig
Committed by Greg Kroah-Hartman
1 parent db99ad8820

net: don't OOPS on socket aio

[ Upstream commit 06539d3071067ff146a9bffd1c801fa56d290909 ]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 0 additions and 3 deletions Side-by-side Diff

... ... @@ -886,9 +886,6 @@
886 886 static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,
887 887 struct sock_iocb *siocb)
888 888 {
889   - if (!is_sync_kiocb(iocb))
890   - BUG();
891   -
892 889 siocb->kiocb = iocb;
893 890 iocb->private = siocb;
894 891 return siocb;