diff options
author | Armin Wolf <W_Armin@gmx.de> | 2023-08-05 08:36:10 +0300 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-08-09 22:56:39 +0300 |
commit | 7295a996fdab7bf83dc3d4078fa8b139b8e0a1bf (patch) | |
tree | 3430bc6af9753c442004a069e3f17039cb4b2bc0 /tools/perf/scripts/python/stackcollapse.py | |
parent | 6f8972a02a6c103b67dc3a0ed9b1722943f65276 (diff) | |
download | linux-7295a996fdab7bf83dc3d4078fa8b139b8e0a1bf.tar.xz |
platform/x86: dell-sysman: Fix reference leak
If a duplicate attribute is found using kset_find_obj(),
a reference to that attribute is returned. This means
that we need to dispose it accordingly. Use kobject_put()
to dispose the duplicate attribute in such a case.
Compile-tested only.
Fixes: e8a60aa7404b ("platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20230805053610.7106-1-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions