Commit 15b2fe39 authored by Evgeniy Polyakov's avatar Evgeniy Polyakov Committed by Linus Torvalds
Browse files

[PATCH] UFS: inode->i_sem is not released in error path

Signed-off-by: default avatarEvgeniy Polyakov <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent ac34dd05
......@@ -1296,8 +1296,10 @@ static ssize_t ufs_quota_write(struct super_block *sb, int type,
if (len == towrite)
if (len == towrite) {
return err;
if (inode->i_size < off+len-towrite)
i_size_write(inode, off+len-towrite);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment