From: Evgeniy Polyakov Date: Sun, 8 Jan 2006 09:04:51 +0000 (-0800) Subject: [PATCH] UFS: inode->i_sem is not released in error path X-Git-Tag: v2.6.16-rc1~715 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=15b2fe3931831891a62bad9cafd403c169ae087c;p=linux-2.6-omap-h63xx.git [PATCH] UFS: inode->i_sem is not released in error path Signed-off-by: Evgeniy Polyakov Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 54828ebcf1b..2ba11a9aa99 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++;