Whamcloud - gitweb
LU-17000 ptlrpc: Use matching deallocator for cfs_expr_list_values 43/55043/3
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 8 May 2024 10:05:30 +0000 (15:35 +0530)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:12:38 +0000 (06:12 +0000)
commitdccb85fcb80f9536cbb5d54030d3c1d141635603
tree874c685aba0724aeb2a23d02b75cbf371284db80
parent2752ac20422b681649e7a1c9ab0b6cf0f93d9e27
LU-17000 ptlrpc: Use matching deallocator for cfs_expr_list_values

For cfs_expr_list_values() allocator use cfs_expr_list_values_free()
as deallocator.

Coverity actually complained that kfree() should not
be called but free() should be called instead. It looks
like coverity is checking under file libcfs/libcfs/util/string.c
function cfs_expr_list_values which is calling calloc().
This cannot be correct under ptlrpc

Test-Parameters: trivial
CoverityID: 424700 ("Incorrect deallocator used")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Idfbb6be585b35f87a59ae92d0cffa85c8dff623a
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55043
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/service.c