android_kernel_motorola_sm6375/drivers/mmc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Xiongfeng Wang 27f712cd47 mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()
commit 222cfa0118aa68687ace74aab8fdf77ce8fbd7e6 upstream.

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: 659c9bc114 ("mmc: sdhci-pci: Build o2micro support in the same module")
Signed-off-by: Xiongfeng Wang <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-11-25 17:42:20 +01:00
..
core mmc: core: properly select voltage range without power cycle 2022-11-25 17:42:20 +01:00
host mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put() 2022-11-25 17:42:20 +01:00
Kconfig
Makefile