diff options
author | Tariq Toukan <[email protected]> | 2024-04-11 14:54:40 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-04-12 19:13:53 -0700 |
commit | aa4ac90d04f4371466000825adb44935ecb5c974 (patch) | |
tree | 8c7e066faffd252008f8b0ba3a05d642e54e2557 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf | |
parent | 37cc10da3a50e6d0cb9808a90b7da9b4868794dd (diff) |
net/mlx5: SD, Handle possible devcom ERR_PTR
Check if devcom holds an error pointer and return immediately.
This fixes Smatch static checker warning:
drivers/net/ethernet/mellanox/mlx5/core/lib/sd.c:221 sd_register()
error: 'devcom' dereferencing possible ERR_PTR()
Enhance mlx5_devcom_register_component() so it stops returning NULL,
making it easier for its callers.
Fixes: d3d057666090 ("net/mlx5: SD, Implement devcom communication and primary election")
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/T/
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Gal Pressman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf')
0 files changed, 0 insertions, 0 deletions