mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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:
1 parent
fcaf15e541
commit
141b664520
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user