mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-26 18:43:33 -05:00
Fix a leak in failure exit in 9p ->get_sb()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
6f5bbff9a1
commit
c96f585737
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ static int v9fs_get_sb(struct file_system_type *fs_type, int flags,
|
|||
|
||||
root = d_alloc_root(inode);
|
||||
if (!root) {
|
||||
iput(inode);
|
||||
retval = -ENOMEM;
|
||||
goto release_sb;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue