diff options
| -rw-r--r-- | io_uring/dma-buf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/dma-buf.h b/io_uring/dma-buf.h index a876a9e5e272..534c06b6879f 100644 --- a/io_uring/dma-buf.h +++ b/io_uring/dma-buf.h @@ -34,10 +34,10 @@ static inline int io_attach_dmabuf_map(struct io_kiocb *req, struct dma_buf_io_map *map; struct io_buf_dma *bd; - if (!IS_ENABLED(CONFIG_DMA_SHARED_BUFFER)) - return -EOPNOTSUPP; if (!(req->flags & REQ_F_DMABUF)) return 0; + if (!IS_ENABLED(CONFIG_DMA_SHARED_BUFFER)) + return -EOPNOTSUPP; bd = req->buf_node->buf->priv; map = dma_buf_io_get_map(bd->ctx, nowait); |
