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)
Fri, Mar 7, 12:25 AM
Unknown Object (File)
Wed, Feb 26, 9:21 AM
Unknown Object (File)
Sun, Feb 23, 1:24 PM
Unknown Object (File)
Sat, Feb 22, 2:08 PM
Unknown Object (File)
Fri, Feb 21, 6:37 AM
Unknown Object (File)
Wed, Feb 19, 6:12 AM
Unknown Object (File)
Wed, Feb 19, 6:03 AM
Unknown Object (File)
Feb 17 2025, 1:07 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