summaryrefslogtreecommitdiff
path: root/rust/helpers/processor.c
diff options
context:
space:
mode:
authorAbhijit Gangurde <abhijit.gangurde@amd.com>2025-09-24 17:21:23 +0300
committerJason Gunthorpe <jgg@nvidia.com>2025-09-26 19:12:56 +0300
commite6d736bd08902ba53460df1b62ee4218bbd17d9b (patch)
treeb4ea7edaf7b77b68c6997106d59d260105ad305d /rust/helpers/processor.c
parentfdd0fe94d68649322e391c5c27dd9f436b4e955e (diff)
downloadlinux-e6d736bd08902ba53460df1b62ee4218bbd17d9b.tar.xz
RDMA/ionic: Fix memory leak of admin q_wr
The admin queue work request buffer, aq->q_wr, is allocated via kcalloc in __ionic_create_rdma_adminq. However, it was not being freed in the corresponding teardown function __ionic_destroy_rdma_adminq. This results in a memory leak. Fix this leak by adding the missing kfree(aq->q_wr) in the destruction path. Fixes: f3bdbd42702c ("RDMA/ionic: Create device queues to support admin operations") Link: https://patch.msgid.link/r/20250924142123.18344-1-abhijit.gangurde@amd.com Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions