projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0584974
)
ocfs2/quota: Release lock for error in ocfs2_quota_write.
author
Tao Ma
<tao.ma@oracle.com>
Thu, 30 Jul 2009 08:07:10 +0000
(16:07 +0800)
committer
Joel Becker
<joel.becker@oracle.com>
Thu, 30 Jul 2009 18:06:06 +0000
(11:06 -0700)
ocfs2_quota_write needs to release the lock if it fails to
read quota block. So use "goto out" instead of "return err".
Signed-off-by: Tao Ma <tao.ma@oracle.com>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/quota_global.c
patch
|
blob
|
history
diff --git
a/fs/ocfs2/quota_global.c
b/fs/ocfs2/quota_global.c
index
cc8785c
..
d604a6a
100644
(file)
--- a/
fs/ocfs2/quota_global.c
+++ b/
fs/ocfs2/quota_global.c
@@
-238,7
+238,7
@@
ssize_t ocfs2_quota_write(struct super_block *sb, int type,
}
if (err) {
mlog_errno(err);
-
return err
;
+
goto out
;
}
lock_buffer(bh);
if (new)