iflib: Avoid leaking the freelist bitmaps upon driver detach
Submitted by: Sai Rajesh Tallamraju <stallamr@netapp.com> MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D27342
This commit is contained in:
parent
102540192c
commit
c065d4e5e9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=368412
@ -2259,10 +2259,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;
|
||||
|
Loading…
Reference in New Issue
Block a user