summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2023-09-25 17:28:19 +0300
committerHans de Goede <hdegoede@redhat.com>2023-10-04 12:52:30 +0300
commit981368e1440b76f68b1ac8f5fb14e739f80ecc4e (patch)
tree8babe9d9c326d14e4fd1858d559862d0af2f3e79 /scripts/gdb/linux/proc.py
parent528ab3e605cabf2f9c9bd5944d3bfe15f6e94f81 (diff)
downloadlinux-981368e1440b76f68b1ac8f5fb14e739f80ecc4e.tar.xz
platform/x86: hp-bioscfg: Fix reference leak
If a duplicate attribute is found using kset_find_obj(), a reference to that attribute is returned which needs to be disposed accordingly using kobject_put(). Use kobject_put() to dispose the duplicate attribute in such a case. As a side note, a very similar bug was fixed in commit 7295a996fdab ("platform/x86: dell-sysman: Fix reference leak"), so it seems that the bug was copied from that driver. Compile-tested only. Fixes: a34fc329b189 ("platform/x86: hp-bioscfg: bioscfg") Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Reviewed-by: Jorge Lopez <jorge.lopez2@hp.com> Link: https://lore.kernel.org/r/20230925142819.74525-3-W_Armin@gmx.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions