diff options
| author | Abhijit Gangurde <abhijit.gangurde@amd.com> | 2026-08-05 11:02:54 +0530 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2026-08-06 07:21:21 -0400 |
| commit | cf3ebd89e754015625fee90aa938f6bc79a2c974 (patch) | |
| tree | b17ba95ac903fb8efb7ee9ee1cc4b58e3d84ef57 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1d0f877d593438a494ca5b05cc8699150409005a (diff) | |
RDMA/ionic: Embed counter driver data in rdma_counter allocation
Commit 7e53b31acc7f ("RDMA/core: Create and destroy rdma_counter using
rdma_zalloc_drv_obj()") requires drivers implementing counter ops to
embed struct rdma_counter in a driver-specific struct, register its size
via INIT_RDMA_OBJ_SIZE, and provide a counter_init callback.
The ionic driver was merged without this adaptation, causing a NULL
pointer dereference in alloc_and_bind() since rdma_zalloc_drv_obj()
allocates zero bytes when size_rdma_counter is unset.
Consolidate struct ionic_counter into a new struct ionic_rdma_counter
that embeds struct rdma_counter, replace the xarray with a lightweight
ida for ID allocation, and add the required counter_init and
INIT_RDMA_OBJ_SIZE declarations.
Fixes: ea4c399642b8 ("RDMA/ionic: Implement device stats ops")
Cc: stable@vger.kernel.org # 6.18
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Link: https://patch.msgid.link/20260805053254.4023262-2-abhijit.gangurde@amd.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
