fix unlock_mutex ... we need a lock mutex before :)
git-svn-id: svn+ssh://en.codiert.org/home/staff/ben/dev/misc.svn/projects/fpgafs@355 766a2236-cff9-0310-b0c0-a81a5f92509a
This commit is contained in:
parent
323f2c8d75
commit
5fb7a317c3
6
inode.c
6
inode.c
@ -159,7 +159,9 @@ int fpgafs_mkdir( struct inode *dir, struct dentry *dentry, int mode)
|
||||
ret = -ENOSPC;
|
||||
inode = fpgafs_new_inode(dir->i_sb, mode | S_IFDIR);
|
||||
if (!inode)
|
||||
goto unmutex;
|
||||
return ret;
|
||||
|
||||
mutex_lock(&inode->i_mutex);
|
||||
|
||||
if (dir->i_mode & S_ISGID) {
|
||||
inode->i_gid = dir->i_gid;
|
||||
@ -185,7 +187,7 @@ int fpgafs_mkdir( struct inode *dir, struct dentry *dentry, int mode)
|
||||
dir->i_nlink++;
|
||||
dentry->d_inode->i_nlink++;
|
||||
|
||||
unmutex:
|
||||
//unmutex:
|
||||
mutex_unlock(&inode->i_mutex);
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user