diff options
| author | Tao Cui <cuitao@kylinos.cn> | 2026-05-20 18:45:46 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-05-25 12:40:08 -0300 |
| commit | b86fd95805a7bd4c5b9465c9e7f75e45bbe7eb6f (patch) | |
| tree | 6add76e817ef1552d44f510fda363c051223f80f /drivers/android/binder/range_alloc/array.rs | |
| parent | 4fbc8230009f5b1bcd13cc74c5a6a43ddba141fd (diff) | |
RDMA/counter: Fix incorrect port index in rdma_counter_init() error cleanup
The error cleanup loop in rdma_counter_init() iterates with variable
'i' but accesses dev->port_data[port] instead of dev->port_data[i].
This causes the failed port's hstats to be freed multiple times while
leaking hstats of previously initialized ports.
Fixes: 56594ae1d250 ("RDMA/core: Annotate destroy of mutex to ensure that it is released as unlocked")
Link: https://patch.msgid.link/r/20260520104546.1776253-3-cuitao@kylinos.cn
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/android/binder/range_alloc/array.rs')
0 files changed, 0 insertions, 0 deletions
