diff options
| -rw-r--r-- | io_uring/rsrc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/io_uring/rsrc.c b/io_uring/rsrc.c index 842e231c8a7c..3f82ed7dd11e 100644 --- a/io_uring/rsrc.c +++ b/io_uring/rsrc.c @@ -1062,6 +1062,10 @@ static int io_import_fixed(int ddir, struct iov_iter *iter, return ret; if (!(imu->dir & (1 << ddir))) return -EFAULT; + if (unlikely(!len)) { + iov_iter_bvec(iter, ddir, NULL, 0, 0); + return 0; + } offset = buf_addr - imu->ubuf; |
