|
@@ -1562,6 +1562,7 @@ int fastcall io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
|
|
fput(file);
|
|
fput(file);
|
|
return -EAGAIN;
|
|
return -EAGAIN;
|
|
}
|
|
}
|
|
|
|
+ req->ki_filp = file;
|
|
if (iocb->aio_flags & IOCB_FLAG_RESFD) {
|
|
if (iocb->aio_flags & IOCB_FLAG_RESFD) {
|
|
/*
|
|
/*
|
|
* If the IOCB_FLAG_RESFD flag of aio_flags is set, get an
|
|
* If the IOCB_FLAG_RESFD flag of aio_flags is set, get an
|
|
@@ -1576,7 +1577,6 @@ int fastcall io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- req->ki_filp = file;
|
|
|
|
ret = put_user(req->ki_key, &user_iocb->aio_key);
|
|
ret = put_user(req->ki_key, &user_iocb->aio_key);
|
|
if (unlikely(ret)) {
|
|
if (unlikely(ret)) {
|
|
dprintk("EFAULT: aio_key\n");
|
|
dprintk("EFAULT: aio_key\n");
|