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>
This commit is contained in:
Yang Ruibin 2024-08-29 11:35:11 +08:00 • committed by Mark Brown
commit 8a0ec8c2d7
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0