summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@nvidia.com>2026-07-13 07:41:23 -0400
committerLeon Romanovsky <leonro@nvidia.com>2026-07-13 07:41:23 -0400
commit2e3809ad8911f5d5581b3f046bd628417bface76 (patch)
tree9a2f3229c0d9c2800ae37dd39ba79e508900f5b8 /tools/perf/scripts/python
parent2982eaf3b9d2d953318c74cd6f1b7576ea6d7b1f (diff)
RDMA/hfi1: Preserve unit 0 on allocation failure
hfi1_free_devdata() assumes that the device was inserted into the unit table and unconditionally erases dd->unit. If xa_alloc_irq() fails, the zero-initialized unit remains zero, so full cleanup can remove an unrelated device from index 0. Release only the rdmavt allocation and return immediately while the unit table has not acquired the device. Fixes: 03b92789e5cf ("hfi1: Convert hfi1_unit_table to XArray") Link: https://patch.msgid.link/20260708-clean-init-one-hfi1-v1-2-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