Date: Mon, 27 Jul 2026 03:45:20 +0000 From: Jose Luis Duran <jlduran@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Giuseppe Lettieri <g.lettieri@iet.unipi.it> Subject: git: 28c3d544db28 - stable/14 - libnetmap: fix extra indirection in nmreq_remove_option Message-ID: <6a66d450.1c576.54e2180c@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/14 has been updated by jlduran: URL: https://cgit.FreeBSD.org/src/commit/?id=28c3d544db285c1c198661e6d932cf76c9d68102 commit 28c3d544db285c1c198661e6d932cf76c9d68102 Author: Giuseppe Lettieri <g.lettieri@iet.unipi.it> AuthorDate: 2026-07-13 12:24:16 +0000 Commit: Jose Luis Duran <jlduran@FreeBSD.org> CommitDate: 2026-07-27 03:42:26 +0000 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 (cherry picked from commit 141b6645204966a0e1ae10dd059c670e2a58e6e1) --- lib/libnetmap/nmreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnetmap/nmreq.c b/lib/libnetmap/nmreq.c index 2477337d8791..a083099f0a12 100644 --- a/lib/libnetmap/nmreq.c +++ b/lib/libnetmap/nmreq.c @@ -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; }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a66d450.1c576.54e2180c>
