diff options
| author | Leon Romanovsky <leonro@nvidia.com> | 2026-07-13 07:41:25 -0400 |
|---|---|---|
| committer | Leon Romanovsky <leonro@nvidia.com> | 2026-07-13 07:41:25 -0400 |
| commit | e26c48cf23a4940208c5d82fcb37d20df234092b (patch) | |
| tree | 458a89b9a37eb258d0c1b441852c6eb383ed9037 /tools/perf/scripts/python | |
| parent | bb18740b302f6f222ce3d5a7e5c45a52a90df805 (diff) | |
RDMA/hfi1: Align probe error unwinding with device removal
init_one() defers handling errors from hfi1_init() and
hfi1_register_ib_device() to a combined block. This allows IB registration
to run after device initialization has failed. Cleanup then depends on two
unrelated error values.
The late probe failure path also differs from the common teardown in
remove_one(), even though both release the same initialized hardware and
driver resources. Maintaining separate sequences obscures ownership and
allows the paths to drift whenever initialization changes.
Unwind at each failing stage and keep late probe teardown ordered like
remove_one(), so partial initialization releases exactly the resources it
owns and normal removal remains the reference cleanup flow.
Link: https://patch.msgid.link/20260708-clean-init-one-hfi1-v1-13-b9e9641268a5@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
