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)
Sun, Aug 23, 10:56 PM
Unknown Object (File)
Sun, Aug 23, 8:57 PM
Unknown Object (File)
Thu, Aug 20, 2:22 AM
Unknown Object (File)
Wed, Aug 12, 3:05 PM
Unknown Object (File)
Wed, Aug 12, 4:01 AM
Unknown Object (File)
Sun, Aug 9, 11:01 AM
Unknown Object (File)
Sat, Aug 8, 7:12 PM
Unknown Object (File)
Sat, Aug 8, 2:09 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