Skip to content

Commit

Permalink
Staging: pohmelfs/dir.c: Remove unneeded mutex_unlock() from pohmelfs…
Browse files Browse the repository at this point in the history
…_rename()

I do not see any reason for the mutex_unlock(&inode->i_mutex); in
pohmelfs_rename().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alexey Khoroshilov authored and Greg Kroah-Hartman committed Jan 21, 2011
1 parent 4ac638b commit e26a755
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/pohmelfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,6 @@ static int pohmelfs_rename(struct inode *old_dir, struct dentry *old_dentry,

clear_bit(NETFS_INODE_REMOTE_SYNCED, &pi->state);

mutex_unlock(&inode->i_mutex);
return err;
}

Expand Down

0 comments on commit e26a755

Please sign in to comment.