net: don't OOPS on socket aio
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9afec6efc6
commit
06539d3071
1 changed files with 0 additions and 3 deletions
|
@ -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,
|
static struct sock_iocb *alloc_sock_iocb(struct kiocb *iocb,
|
||||||
struct sock_iocb *siocb)
|
struct sock_iocb *siocb)
|
||||||
{
|
{
|
||||||
if (!is_sync_kiocb(iocb))
|
|
||||||
BUG();
|
|
||||||
|
|
||||||
siocb->kiocb = iocb;
|
siocb->kiocb = iocb;
|
||||||
iocb->private = siocb;
|
iocb->private = siocb;
|
||||||
return siocb;
|
return siocb;
|
||||||
|
|
Loading…
Add table
Reference in a new issue