]> 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, 25 Feb 2022 09:35:59 +0000 (10:35 +0100)
commit8523dcb4797fdbe427ff3d7a1e70f50167c06f5d
treea1ecee48c31637e24205c487d680a359f875a9bf
parent97b6a41b751cd083749b4538763ff10b50e1f630
serial: 8250_mid: Balance reference count for PCI DMA device

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>
drivers/tty/serial/8250/8250_mid.c