1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/marvell/octeontx2/af
Xiongfeng Wang ad17c2a3f1 octeontx2-af: Fix reference count issue in rvu_sdp_init()
pci_get_device() will decrease the reference count for the *from*
parameter. So we don't need to call put_device() to decrease the
reference. Let's remove the put_device() in the loop and only decrease
the reference count of the returned 'pdev' for the last loop because it
will not be passed to pci_get_device() as input parameter. We don't need
to check if 'pdev' is NULL because it is already checked inside
pci_dev_put(). Also add pci_dev_put() for the error path.

Fixes: fe1939bb23 ("octeontx2-af: Add SDP interface support")
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Reviewed-by: Saeed Mahameed <saeed@kernel.org>
Link: https://lore.kernel.org/r/20221123065919.31499-1-wangxiongfeng2@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-11-24 10:01:42 +01:00
..
cgx.c octeontx2-af: Set NIX link credits based on max LMAC 2022-07-15 12:02:45 +01:00
cgx.h octeontx2-af: Limit link bringup time at firmware 2022-07-13 20:17:29 -07:00
cgx_fw_if.h octeontx2-af: Limit link bringup time at firmware 2022-07-13 20:17:29 -07:00
common.h octeontx2-af: Hardware configuration for inline IPsec 2021-09-16 14:37:38 +01:00
lmac_common.h octeontx2-af: Set NIX link credits based on max LMAC 2022-07-15 12:02:45 +01:00
Makefile octeontx2-af: cn10k: Introduce driver for macsec block. 2022-10-03 12:50:18 +01:00
mbox.c octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
mbox.h octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
mcs.c octeontx2-af: cn10k: mcs: Fix copy and paste bug in mcs_bbe_intr_handler() 2022-11-21 13:04:28 +00:00
mcs.h octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
mcs_cnf10kb.c octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
mcs_reg.h octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
mcs_rvu_if.c octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
npc.h octeontx2-af: Exact match scan from kex profile 2022-07-11 10:52:13 -07:00
npc_profile.h octeontx2-af: Enable Exact match flag in kex profile 2022-07-11 10:52:14 -07:00
ptp.c octeontx2-af: Initialize PTP_SEC_ROLLOVER register properly 2022-09-17 20:13:41 +01:00
ptp.h octeontx2-af: Add PTP PPS Errata workaround on CN10K silicon 2022-09-17 20:13:41 +01:00
rpm.c octeontx2-pf: Add support for ptp 1-step mode on CN10K silicon 2022-09-17 20:13:41 +01:00
rpm.h octeontx2-pf: Add support for ptp 1-step mode on CN10K silicon 2022-09-17 20:13:41 +01:00
rvu.c octeontx2-af: cn10k: mcs: Handle MCS block interrupts 2022-10-03 12:50:19 +01:00
rvu.h octeontx2-af: cn10k: mcs: Add debugfs support 2022-10-03 12:50:19 +01:00
rvu_cgx.c octeontx2-af: Set NIX link credits based on max LMAC 2022-07-15 12:02:45 +01:00
rvu_cn10k.c octeontx2-af: Hardware configuration for inline IPsec 2021-09-16 14:37:38 +01:00
rvu_cpt.c octeontx2-af: fix operand size in bitwise operation 2022-07-01 19:10:58 -07:00
rvu_debugfs.c octeontx2-af: debugsfs: fix pci device refcount leak 2022-11-18 19:39:05 -08:00
rvu_devlink.c octeontx2-af: devlink configuration support 2022-07-11 10:52:13 -07:00
rvu_devlink.h octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
rvu_nix.c octeontx2-pf: Add check for devm_kcalloc 2022-11-24 08:34:45 +01:00
rvu_npa.c octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
rvu_npc.c octeontx2-af: Fix mcam entry resource leak 2022-08-05 18:56:34 -07:00
rvu_npc_fs.c octeontx2-af: Fix key checking for source mac 2022-08-05 18:56:34 -07:00
rvu_npc_fs.h octeontx2-af: Use hashed field in MCAM key 2022-07-11 10:52:12 -07:00
rvu_npc_hash.c octeontx2-af: Fixes static warnings 2022-07-15 12:01:43 +01:00
rvu_npc_hash.h octeontx2-af: Wrapper functions for MAC addr add/del/update/reset 2022-07-11 10:52:14 -07:00
rvu_reg.c octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
rvu_reg.h octeontx2-pf: Add support for ptp 1-step mode on CN10K silicon 2022-09-17 20:13:41 +01:00
rvu_sdp.c octeontx2-af: Fix reference count issue in rvu_sdp_init() 2022-11-24 10:01:42 +01:00
rvu_struct.h octeontx2-af: Enable CPT HW interrupts 2021-10-14 20:01:06 -07:00
rvu_switch.c octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
rvu_trace.c octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00
rvu_trace.h octeontx2-af: Fix inconsistent license text 2021-08-29 10:46:15 +01:00