Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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-by: syzbot+26eedf3631650972f17c@syzkaller.appspotmail.com Fixes: 0cea4c0 ("ovl: store and show the user provided lowerdir mount option") Co-authored-by: Edward Adam Davis <eadavis@qq.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
- Loading branch information