serial: 8250_mid: Balance reference count for PCI DMA device
stable inclusion from stable-4.19.238 commit a8b63dbebbd8eab46dc24d158c05eeb3a6c2a436 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I5A6BA CVE: NA -------------------------------- [ Upstream commit 67ec6dd0 ] The pci_get_slot() increases its reference count, the caller must decrement the reference count by calling pci_dev_put(). Fixes: 90b9aacf ("serial: 8250_pci: add Intel Tangier support") Fixes: f549e94e ("serial: 8250_pci: add Intel Penwell ports") Reported-by: NQing Wang <wangqing@vivo.com> Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com> Depends-on: d9eda9ba ("serial: 8250_pci: Intel MID UART support to its own driver") Link: https://lore.kernel.org/r/20220215100920.41984-1-andriy.shevchenko@linux.intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYongqiang Liu <liuyongqiang13@huawei.com>
Showing
想要评论请 注册 或 登录