diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index d84ad40eae49..3bf800426fd2 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -63,7 +63,7 @@ static int io_area_max_shift(struct io_zcrx_mem *mem) unsigned i; for_each_sgtable_dma_sg(sgt, sg, i) - shift = min(shift, __ffs(sg->length)); + shift = min(shift, __ffs(sg_dma_len(sg))); return shift; }