]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250_mid: Balance reference count for PCI DMA device
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 15 Feb 2022 10:09:20 +0000 (12:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:46 +0000 (14:23 +0200)
commit9d9e41a3f13072be979e91cd4286f0686159ab95
treeb6c549e57b92d702b790ebc4106aa139734d742e
parentdd7413fa0654d4d272e5e3e8890e3dce8845ec9a
serial: 8250_mid: Balance reference count for PCI DMA device

[ Upstream commit 8523dcb4797fdbe427ff3d7a1e70f50167c06f5d ]

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

Fixes: 28b5b226348e ("serial: 8250_pci: add Intel Tangier support")
Fixes: ffe9d147b329 ("serial: 8250_pci: add Intel Penwell ports")
Reported-by: Qing Wang <wangqing@vivo.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Depends-on: 7e709d8611ef ("serial: 8250_pci: Intel MID UART support to its own driver")
Link: https://lore.kernel.org/r/20220215100920.41984-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_mid.c