git: a822bf6354ee - stable/12 - iflib: Avoid leaking the freelist bitmaps upon driver detach

Mark Johnston markj at FreeBSD.org
Sat Dec 26 21:41:29 UTC 2020


The branch stable/12 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=a822bf6354ee44c93ab64488e1970c2e7a79104a

commit a822bf6354ee44c93ab64488e1970c2e7a79104a
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2020-12-07 14:53:14 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2020-12-26 21:40:59 +0000

    iflib: Avoid leaking the freelist bitmaps upon driver detach
    
    Submitted by:   Sai Rajesh Tallamraju <stallamr at netapp.com>
    Sponsored by:   NetApp, Inc.
    
    (cherry picked from commit c065d4e5e9f27743126dcdfcf6d1c7fa36a693c0)
---
 sys/net/iflib.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
index dc4a84fe12cc..24f23a338411 100644
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -2339,10 +2339,12 @@ iflib_rx_sds_free(iflib_rxq_t rxq)
 			free(fl->ifl_sds.ifsd_cl, M_IFLIB);
 			free(fl->ifl_sds.ifsd_ba, M_IFLIB);
 			free(fl->ifl_sds.ifsd_map, M_IFLIB);
+			free(fl->ifl_rx_bitmap, M_IFLIB);
 			fl->ifl_sds.ifsd_m = NULL;
 			fl->ifl_sds.ifsd_cl = NULL;
 			fl->ifl_sds.ifsd_ba = NULL;
 			fl->ifl_sds.ifsd_map = NULL;
+			fl->ifl_rx_bitmap = NULL;
 		}
 		free(rxq->ifr_fl, M_IFLIB);
 		rxq->ifr_fl = NULL;


More information about the dev-commits-src-all mailing list