diff options
| author | Zilin Guan <zilin@seu.edu.cn> | 2025-12-25 07:41:03 +0000 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2026-01-04 23:03:25 -0500 |
| commit | 0c728083654f0066f5e10a1d2b0bd0907af19a58 (patch) | |
| tree | 87c7dd371257703bc76d2b204919f3bd1a6508ba /include/linux/platform_data/git@git.tavy.me:linux.git | |
| parent | cce0be6eb4971456b703aaeafd571650d314bcca (diff) | |
pnfs/flexfiles: Fix memory leak in nfs4_ff_alloc_deviceid_node()
In nfs4_ff_alloc_deviceid_node(), if the allocation for ds_versions fails,
the function jumps to the out_scratch label without freeing the already
allocated dsaddrs list, leading to a memory leak.
Fix this by jumping to the out_err_drain_dsaddrs label, which properly
frees the dsaddrs list before cleaning up other resources.
Fixes: d67ae825a59d6 ("pnfs/flexfiles: Add the FlexFile Layout Driver")
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux/platform_data/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
