mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
Fix failure exit in ipathfs
deactivate_locked_super() will be done by caller of fill_super, doing it there as well is b0rken. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
083c73c253
commit
12e9a45609
1 changed files with 1 additions and 3 deletions
|
@ -346,10 +346,8 @@ static int ipathfs_fill_super(struct super_block *sb, void *data,
|
|||
list_for_each_entry_safe(dd, tmp, &ipath_dev_list, ipath_list) {
|
||||
spin_unlock_irqrestore(&ipath_devs_lock, flags);
|
||||
ret = create_device_files(sb, dd);
|
||||
if (ret) {
|
||||
deactivate_locked_super(sb);
|
||||
if (ret)
|
||||
goto bail;
|
||||
}
|
||||
spin_lock_irqsave(&ipath_devs_lock, flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue