HomeFreeBSD

tcp: fix leaks in tcp_chg_pacing_rate error paths

Description

tcp: fix leaks in tcp_chg_pacing_rate error paths

tcp_chg_pacing_rate() is expected to release the hw rate limit table,
but failed to do so in several error cases, leading to ever
increasing counts of flows using the rate.

This patch was mostly done by rrs

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D34058
Reviewed by: hselasky, rrs, jhb (inital version, outside of Differential)

Details

Provenance
gallatinAuthored on Jan 27 2022, 3:35 PM
Reviewer
hselasky
Differential Revision
D34058: tcp: fix leaks in tcp_chg_pacing_rate error paths
Parents
rG9ba117960e17: Fix a memory leak when ip_output_send() returns EAGAIN due to send tag issues
Branches
Unknown
Tags
Unknown