aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.h
diff options
context:
space:
mode:
authorSrinivas Pandruvada <[email protected]>2024-08-16 16:36:26 +0000
committerIlpo Järvinen <[email protected]>2024-08-20 11:19:09 +0000
commit46ee21e9f59205e54943dfe51b2dc8a9352ca37d (patch)
tree0a21abaffb885ce348ebabbeb53ac2e7612d5e98 /drivers/net/dsa/dsa_loop.h
parentplatform/surface: aggregator: Fix warning when controller is destroyed in probe (diff)
downloadkernel-46ee21e9f59205e54943dfe51b2dc8a9352ca37d.tar.gz
kernel-46ee21e9f59205e54943dfe51b2dc8a9352ca37d.zip
platform/x86: ISST: Fix return value on last invalid resource
When only the last resource is invalid, tpmi_sst_dev_add() is returing error even if there are other valid resources before. This function should return error when there are no valid resources. Here tpmi_sst_dev_add() is returning "ret" variable. But this "ret" variable contains the failure status of last call to sst_main(), which failed for the invalid resource. But there may be other valid resources before the last entry. To address this, do not update "ret" variable for sst_main() return status. If there are no valid resources, it is already checked for by !inst below the loop and -ENODEV is returned. Fixes: 9d1d36268f3d ("platform/x86: ISST: Support partitioned systems") Signed-off-by: Srinivas Pandruvada <[email protected]> Cc: [email protected] # 6.10+ Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.h')
0 files changed, 0 insertions, 0 deletions