]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_lpss: Balance reference count for PCI DMA device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 23 Feb 2022 15:12:40 +0000 (17:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:46 +0000 (14:23 +0200)
commit1d955ad82bbaf056a0375b6320182e1353013c08
treec0e6d2ce4e2f94c51fcc6e758a0bb2812f620fb5
parent9d9e41a3f13072be979e91cd4286f0686159ab95
serial: 8250_lpss: Balance reference count for PCI DMA device

[ Upstream commit 65b6ece8dd5952251390f0d562f3d485fa7cb2bd ]

The pci_get_slot() increases its reference count, the caller
must decrement the reference count by calling pci_dev_put().

Fixes: aba45cc70350 ("serial: 8250: don't use slave_id of dma_slave_config")
Depends-on: a53794e10b58 ("serial: 8250_lpss: split LPSS driver to separate module")
Reported-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220223151240.70248-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250_lpss.c