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
F136904697: D48970.diff
Thu, Nov 20, 1:58 PM
Unknown Object (File)
Tue, Nov 11, 12:52 AM
Unknown Object (File)
Mon, Nov 10, 4:34 PM
Unknown Object (File)
Mon, Nov 10, 11:03 AM
Unknown Object (File)
Sun, Nov 9, 4:31 PM
Unknown Object (File)
Sun, Nov 9, 2:55 PM
Unknown Object (File)
Sun, Nov 9, 6:40 AM
Unknown Object (File)
Sun, Nov 9, 3:49 AM
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