diff options
author | Evgeniy Polyakov <johnpol@2ka.mipt.ru> | 2006-01-08 01:04:51 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 20:14:04 -0800 |
commit | 15b2fe3931831891a62bad9cafd403c169ae087c (patch) | |
tree | f962f7fea257daba3d3db47f58bf12c7ecc5a379 /fs/ufs | |
parent | ac34dd052400b1e63aa8e711a13c0670943296fd (diff) | |
download | kernel_samsung_crespo-15b2fe3931831891a62bad9cafd403c169ae087c.zip kernel_samsung_crespo-15b2fe3931831891a62bad9cafd403c169ae087c.tar.gz kernel_samsung_crespo-15b2fe3931831891a62bad9cafd403c169ae087c.tar.bz2 |
[PATCH] UFS: inode->i_sem is not released in error path
Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ufs')
-rw-r--r-- | fs/ufs/super.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 54828eb..2ba11a9 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c @@ -1296,8 +1296,10 @@ static ssize_t ufs_quota_write(struct super_block *sb, int type, blk++; } out: - if (len == towrite) + if (len == towrite) { + up(&inode->i_sem); return err; + } if (inode->i_size < off+len-towrite) i_size_write(inode, off+len-towrite); inode->i_version++; |