mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 17:23:25 -05:00
Fix configfs leak
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
9850c05655
commit
9b6e310211
1 changed files with 3 additions and 1 deletions
|
@ -121,8 +121,10 @@ static int get_target(const char *symname, struct path *path,
|
|||
ret = -ENOENT;
|
||||
path_put(path);
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
ret = -EPERM;
|
||||
path_put(path);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue