diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2022-09-28 20:58:02 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2022-09-28 20:58:02 +0000 |
| commit | c5eed4146fc9ac6abeef9e26f6675e86d0888443 (patch) | |
| tree | 86e80e9554e606300ee829d250803eed5090e7ef /sys/dev/iser | |
| parent | 124e46735e07037afafbf0caa097faafb09c7329 (diff) | |
Diffstat (limited to 'sys/dev/iser')
| -rw-r--r-- | sys/dev/iser/iser_initiator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iser/iser_initiator.c b/sys/dev/iser/iser_initiator.c index 49960c29a614..4e426240c882 100644 --- a/sys/dev/iser/iser_initiator.c +++ b/sys/dev/iser/iser_initiator.c @@ -290,7 +290,7 @@ iser_buf_to_sg(void *buf, struct iser_data_buf *data_buf) offset = ((uintptr_t)buf) & ~PAGE_MASK; len = min(PAGE_SIZE - offset, tlen); sg_set_buf(sg, buf, len); - buf = (void *)(((u64)buf) + (u64)len); + buf = (void *)((uintptr_t)buf + len); } data_buf->size = i; |
