Skip to content
Commit 37f32f52 authored by Amir Goldstein's avatar Amir Goldstein
Browse files

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: 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>
parent b28060db
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