Commit 43443003 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Zheng Zengkai
Browse files

serial: 8250_lpss: Balance reference count for PCI DMA device

stable inclusion
from stable-v5.10.110
commit 659fe4d653a2d628a22d3b560e33b581e6b63625
bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=659fe4d653a2d628a22d3b560e33b581e6b63625



--------------------------------

[ Upstream commit 5318f70d ]

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

Fixes: 9a1870ce ("serial: 8250: don't use slave_id of dma_slave_config")
Depends-on: a13e19cf ("serial: 8250_lpss: split LPSS driver to separate module")
Reported-by: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220223151240.70248-1-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYu Liao <liaoyu15@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent de2b5be7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment