diff --git a/lib/util/dif.c b/lib/util/dif.c index c3d323665..337aa6ed5 100644 --- a/lib/util/dif.c +++ b/lib/util/dif.c @@ -89,7 +89,7 @@ _dif_sgl_get_buf(struct _dif_sgl *s, void **_buf, uint32_t *_buf_len) static void _dif_sgl_fast_forward(struct _dif_sgl *s, uint32_t offset) { - s->iov_offset = offset; + s->iov_offset += offset; while (s->iovcnt != 0) { if (s->iov_offset < s->iov->iov_len) { break;