diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2019-10-27 09:28:33 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2019-10-27 09:28:33 +0000 |
| commit | 6f16222e76c3b8153a9e1deeb8dd91e0e28c54c1 (patch) | |
| tree | 564d8c2e709601ff0b249d8f1277cea9f4bb09f6 /sys/dev/netmap/netmap.c | |
| parent | 975446e5f19719908817720b7f17a2e6654f6381 (diff) | |
Notes
Diffstat (limited to 'sys/dev/netmap/netmap.c')
| -rw-r--r-- | sys/dev/netmap/netmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c index 5eda4019c238..982f76d45faa 100644 --- a/sys/dev/netmap/netmap.c +++ b/sys/dev/netmap/netmap.c @@ -3316,7 +3316,8 @@ nmreq_getoption(struct nmreq_header *hdr, uint16_t reqtype) if (!hdr->nr_options) return NULL; - opt_tab = (struct nmreq_option **)(hdr->nr_options) - (NETMAP_REQ_OPT_MAX + 1); + opt_tab = (struct nmreq_option **)((uintptr_t)hdr->nr_options) - + (NETMAP_REQ_OPT_MAX + 1); return opt_tab[reqtype]; } |
