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 | 9bab31776ae60a1172f4405d792046c93bb7e93a (patch) | |
| tree | 04d1e28640a1fbef4b852011d7fcd5bd71d7d365 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | d43b1c17f9e1b9d34a0d742f569c00d84147ebc0 (diff) | |
RDMA/hfi1: Defer device creation until probe succeeds
init_one() creates the character device before checking whether generic or
IB initialization failed, only to remove it immediately while unwinding.
Moreover, user_add() already calls user_remove() when device creation
fails.
Move hfi1_device_create() after the initialization failure path,
immediately before starting SDMA. The failure path then has no character
device to remove, and hfi1_device_create() continues to unwind its own
failures.
Link: https://patch.msgid.link/20260708-clean-init-one-hfi1-v1-11-b9e9641268a5@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
