Skip to content
Commit be9857a4 authored by Amir Goldstein's avatar Amir Goldstein Committed by Greg Kroah-Hartman
Browse files

ovl: fix memory leak in ovl_parse_param()

commit 37f32f52

 upstream.

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: default avatar <syzbot+26eedf3631650972f17c@syzkaller.appspotmail.com>
Fixes: c835110b

 ("ovl: remove unused code in lowerdir param parsing")
Co-authored-by: default avatarEdward Adam Davis <eadavis@qq.com>
Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
Signed-off-by: default avatarJingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3caf7f49
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment