libnetmap: fix extra indirection in nmreq_remove_option

Reviewed by:	zlei, vmaffione
Obtained from:	https://github.com/luigirizzo/netmap/commit/7d9177ed9a121e66bf4eaa0acb5d574e408297da
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D58151
This commit is contained in:
Giuseppe Lettieri authored and Jose Luis Duran committed 2026-07-13 12:24:16 +00:00
1 parent fcaf15e541
commit 141b664520
1 file changed
+1 -1
+1 -1
View File
@@ -615,7 +615,7 @@ nmreq_remove_option(struct nmreq_header *h, struct nmreq_option *o)
for (nmo = (struct nmreq_option **)&h->nr_options; *nmo != NULL;
nmo = (struct nmreq_option **)&(*nmo)->nro_next) {
if (*nmo == o) {
*((uint64_t *)(*nmo)) = o->nro_next;
*((uint64_t *)nmo) = o->nro_next;
o->nro_next = (uint64_t)(uintptr_t)NULL;
break;
}