Commit db4d24bc7f3be9fedd6f97585a2ef9f72b7478e7

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

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

... ... @@ -892,9 +892,6 @@
892 892 static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,
893 893 struct sock_iocb *siocb)
894 894 {
895   - if (!is_sync_kiocb(iocb))
896   - BUG();
897   -
898 895 siocb->kiocb = iocb;
899 896 iocb->private = siocb;
900 897 return siocb;