aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorJianglei Nie <niejianglei2021@163.com>2022-04-02 10:17:15 +0800
committerTony Nguyen <anthony.l.nguyen@intel.com>2022-04-14 08:31:01 -0700
commit7c8881b77908a51814a050da408c89f1a25b7fb7 (patch)
tree266fd6148ee81d7776f1ad1e93dbf6c24d235e01 /tools/perf/scripts/python/exported-sql-viewer.py
parentd201665147ae788b7cca9fab58a1826f64152034 (diff)
ice: Fix memory leak in ice_get_orom_civd_data()
A memory chunk was allocated for orom_data in ice_get_orom_civd_data() by vzmalloc(). But when ice_read_flash_module() fails, the allocated memory is not freed, which will lead to a memory leak. We can fix it by freeing the orom_data when ce_read_flash_module() fails. Fixes: af18d8866c80 ("ice: reduce time to read Option ROM CIVD data") Signed-off-by: Jianglei Nie <niejianglei2021@163.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions