]> Git Repo - linux.git/commit
ovl: fix memory leak in ovl_parse_param()
authorAmir Goldstein <[email protected]>
Sun, 12 Nov 2023 08:11:25 +0000 (10:11 +0200)
committerAmir Goldstein <[email protected]>
Tue, 14 Nov 2023 06:09:36 +0000 (08:09 +0200)
commit37f32f52643869131ec01bb69bdf9f404f6109fb
tree19542e9b530ea0dd91d76f0b64987d25c281fc79
parentb28060db7172e6d8912d88b369123eb89e0d36b4
ovl: fix memory leak in ovl_parse_param()

On failure to parse parameters in ovl_parse_param_lowerdir(), it is
necessary to update ctx->nr with the correct nr before using
ovl_reset_lowerdirs() to release l->name.

Reported-and-tested-by: [email protected]
Fixes: c835110b588a ("ovl: remove unused code in lowerdir param parsing")
Co-authored-by: Edward Adam Davis <[email protected]>
Signed-off-by: Amir Goldstein <[email protected]>
fs/overlayfs/params.c
This page took 0.050201 seconds and 4 git commands to generate.