git: 224e20ceb121 - stable/14 - gve: Make gve_free_qpls idempotent
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jun 2024 05:45:04 UTC
The branch stable/14 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=224e20ceb1212579887397b67c43b42d41108c62 commit 224e20ceb1212579887397b67c43b42d41108c62 Author: Shailend Chand <shailend@google.com> AuthorDate: 2024-06-05 05:31:46 +0000 Commit: Xin LI <delphij@FreeBSD.org> CommitDate: 2024-06-21 05:44:34 +0000 gve: Make gve_free_qpls idempotent This fixes a panic caused by double free. PR: kern/279410 Differential Revision: https://reviews.freebsd.org/D45489 (cherry picked from commit b81cbb12410b000074483899e61e9e767ba3ec1d) --- sys/dev/gve/gve_qpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/gve/gve_qpl.c b/sys/dev/gve/gve_qpl.c index 3c6d9af6feee..9a946a2a2f2d 100644 --- a/sys/dev/gve/gve_qpl.c +++ b/sys/dev/gve/gve_qpl.c @@ -182,6 +182,7 @@ gve_free_qpls(struct gve_priv *priv) for (i = 0; i < num_qpls; i++) gve_free_qpl(priv, i); free(priv->qpls, M_GVE_QPL); + priv->qpls = NULL; } }