diff options
Diffstat (limited to 'vu_common.c')
-rw-r--r-- | vu_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vu_common.c b/vu_common.c index f2eb701..299b5a3 100644 --- a/vu_common.c +++ b/vu_common.c @@ -35,7 +35,7 @@ int vu_packet_check_range(void *buf, size_t offset, size_t len, for (dev_region = buf; dev_region->mmap_addr; dev_region++) { /* NOLINTNEXTLINE(performance-no-int-to-ptr) */ - char *m = (char *)dev_region->mmap_addr; + char *m = (char *)(uintptr_t)dev_region->mmap_addr; if (m <= start && start + offset + len <= m + dev_region->mmap_offset + |