diff options
author | Stephen Hurd <shurd@FreeBSD.org> | 2018-11-14 15:16:45 +0000 |
---|---|---|
committer | Stephen Hurd <shurd@FreeBSD.org> | 2018-11-14 15:16:45 +0000 |
commit | 4d261ce278f6fc4bf8e2571d4c101cbf944c9155 (patch) | |
tree | 8a73a8ca9a5c855472165e90a4c64e0f965f2626 /sys/isa/pnp.c | |
parent | 830809aea1db4120e6c8f2e9247bc7218f63927d (diff) | |
download | src-4d261ce278f6fc4bf8e2571d4c101cbf944c9155.tar.gz src-4d261ce278f6fc4bf8e2571d4c101cbf944c9155.zip |
Fix leaks caused by ifc_nhwtxqs never being initialized
r333502 removed initialization of ifc_nhwtxqs, and it's not clear
there's a need to copy it into the struct iflib_ctx at all. Use
ctx->ifc_sctx->isc_ntxqs instead.
Further, iflib_stop() did not clear the last ring in the case where
isc_nfl != isc_nrxqs (such as when IFLIB_HAS_RXCQ is set). Use
ctx->ifc_sctx->isc_nrxqs here instead of isc_nfl.
Reported by: pkelsey
Reviewed by: pkelsey
MFC after: 3 days
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D17979
Notes
Notes:
svn path=/head/; revision=340434
Diffstat (limited to 'sys/isa/pnp.c')
0 files changed, 0 insertions, 0 deletions