diff options
author | 2023-03-09 12:01:07 +0800 | |
---|---|---|
committer | 2023-03-20 13:11:55 +0100 | |
commit | da0ba0ccce54059d6c6b788a75099bfce95126da (patch) | |
tree | 54b3c0ac4f549ea19b372529b7233639f8a7711b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform: mellanox: mlx-platform: Initialize shift variable to 0 (diff) | |
download | wireguard-linux-da0ba0ccce54059d6c6b788a75099bfce95126da.tar.xz wireguard-linux-da0ba0ccce54059d6c6b788a75099bfce95126da.zip |
platform/x86/intel: vsec: Fix a memory leak in intel_vsec_add_aux
The first error handling code in intel_vsec_add_aux misses the
deallocation of intel_vsec_dev->resource.
Fix this by adding kfree(intel_vsec_dev->resource) in the error handling
code.
Reviewed-by: David E. Box <david.e.box@linux.intel.com>
Signed-off-by: Dongliang Mu <dzm91@hust.edu.cn>
Link: https://lore.kernel.org/r/20230309040107.534716-4-dzm91@hust.edu.cn
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions