Page MenuHomeFreeBSD

gve: Fix memory leak during reset
ClosedPublic

Authored by jtranoleary_google.com on Feb 12 2025, 6:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 4, 3:51 PM
Unknown Object (File)
Tue, Nov 4, 3:51 PM
Unknown Object (File)
Tue, Nov 4, 3:50 PM
Unknown Object (File)
Tue, Nov 4, 3:43 PM
Unknown Object (File)
Thu, Oct 23, 10:17 AM
Unknown Object (File)
Wed, Oct 22, 3:16 AM
Unknown Object (File)
Tue, Oct 21, 5:44 PM
Unknown Object (File)
Sun, Oct 12, 4:53 PM
Subscribers

Details

Summary

Before this change, during reset we were allocating new memory for
priv->ptype_lut_dqo, irq_db_array and the counter_array over the old
memory. This change ensures we do not allocate new memory during reset
and avoid memory leaks.

Signed-off-by: Vee Agarwal <veethebee@google.com>
Signed-off-by: Jasper Tran O'Leary <jtranoleary@google.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable