spi: Insert the missing pci_dev_put()before return
authorYang Ruibin <11162571@vivo.com>
Thu, 29 Aug 2024 03:35:11 +0000 (11:35 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 29 Aug 2024 12:02:04 +0000 (13:02 +0100)
commit8a0ec8c2d736961ff556e9d331decda9048fe0f1
treeca0f0b09578b480600a2de5932634e3eba828054
parent2fe6102bf01a5f4f48f211c2e5c8a274342fccb1
spi: Insert the missing pci_dev_put()before return

Increase the reference count by calling pci_get_slot(), and remember to
decrement the reference count by calling pci_dev_put().

Signed-off-by: Yang Ruibin <11162571@vivo.com>
Link: https://patch.msgid.link/20240829033511.1917015-1-11162571@vivo.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-pci.c