Skip to content

Commit

Permalink
Fix failure exit in ipathfs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Jan 27, 2010
1 parent 083c73c commit 12e9a45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/infiniband/hw/ipath/ipath_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 12e9a45

Please sign in to comment.