projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac34dd0
)
[PATCH] UFS: inode->i_sem is not released in error path
author
Evgeniy Polyakov
<johnpol@2ka.mipt.ru>
Sun, 8 Jan 2006 09:04:51 +0000
(
01:04
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:04 +0000
(20:14 -0800)
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>
fs/ufs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ufs/super.c
b/fs/ufs/super.c
index 54828ebcf1bacda4d1c94dc4461cd99d8264234d..2ba11a9aa995964721b9edd08ee1a0b1b3c0f688 100644
(file)
--- 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++;