summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2022-11-14 11:31:00 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2022-11-16 19:00:39 +0300
commit222cfa0118aa68687ace74aab8fdf77ce8fbd7e6 (patch)
treef82064ffa483986fc625e97b6fb1595b89029e13 /tools/perf/scripts/python/task-analyzer.py
parent096cc0cddf58232bded309336961784f1d1c85f8 (diff)
downloadlinux-222cfa0118aa68687ace74aab8fdf77ce8fbd7e6.tar.xz
mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
pci_get_device() will increase the reference count for the returned pci_dev. We need to use pci_dev_put() to decrease the reference count before amd_probe() returns. There is no problem for the 'smbus_dev == NULL' branch because pci_dev_put() can also handle the NULL input parameter case. Fixes: 659c9bc114a8 ("mmc: sdhci-pci: Build o2micro support in the same module") Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20221114083100.149200-1-wangxiongfeng2@huawei.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions