summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/irdma/verbs.c
diff options
context:
space:
mode:
authorXiongfeng Wang <wangxiongfeng2@huawei.com>2022-11-17 14:15:46 +0100
committerLeon Romanovsky <leon@kernel.org>2022-11-22 08:53:36 +0100
commit9b51d072da1d27e1193e84708201c48e385ad912 (patch)
treea36209e9c936f4abbb2a90d1acb0de60309bf24b /drivers/infiniband/hw/irdma/verbs.c
parentIB/isert: use the ISCSI_LOGIN_CURRENT_STAGE macro (diff)
downloadlinux-9b51d072da1d27e1193e84708201c48e385ad912.tar.xz
linux-9b51d072da1d27e1193e84708201c48e385ad912.zip
RDMA/hfi: Decrease PCI device reference count in error path
pci_get_device() will increase the reference count for the returned pci_dev, and also decrease the reference count for the input parameter *from* if it is not NULL. If we break out the loop in node_affinity_init() with 'dev' not NULL, we need to call pci_dev_put() to decrease the reference count. Add missing pci_dev_put() in error path. Fixes: c513de490f80 ("IB/hfi1: Invalid NUMA node information can cause a divide by zero") Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com> Link: https://lore.kernel.org/r/20221117131546.113280-1-wangxiongfeng2@huawei.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/irdma/verbs.c')
0 files changed, 0 insertions, 0 deletions