diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-10-22 04:01:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-10-22 04:01:11 -0400 |
commit | d24fec3991076124e069c889c530cdc69cd43fb8 (patch) | |
tree | aba6da450fd0bf1c903f5bc559506500b15690ef | |
parent | b403b73c21fcab11411a1439867a3ead9117e5e4 (diff) | |
parent | 8660998608cfa1077e560034db81885af8e1e885 (diff) |
Merge tag 'jfs-3.12' of git://github.com/kleikamp/linux-shaggy
Pull jfs bugfix from David Kleikamp:
"Just a patch to fix an oops in an error path"
* tag 'jfs-3.12' of git://github.com/kleikamp/linux-shaggy:
jfs: fix error path in ialloc
-rw-r--r-- | fs/jfs/jfs_inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/jfs/jfs_inode.c b/fs/jfs/jfs_inode.c index c1a3e603279c..7f464c513ba0 100644 --- a/fs/jfs/jfs_inode.c +++ b/fs/jfs/jfs_inode.c | |||
@@ -95,7 +95,7 @@ struct inode *ialloc(struct inode *parent, umode_t mode) | |||
95 | 95 | ||
96 | if (insert_inode_locked(inode) < 0) { | 96 | if (insert_inode_locked(inode) < 0) { |
97 | rc = -EINVAL; | 97 | rc = -EINVAL; |
98 | goto fail_unlock; | 98 | goto fail_put; |
99 | } | 99 | } |
100 | 100 | ||
101 | inode_init_owner(inode, parent, mode); | 101 | inode_init_owner(inode, parent, mode); |
@@ -156,7 +156,6 @@ struct inode *ialloc(struct inode *parent, umode_t mode) | |||
156 | fail_drop: | 156 | fail_drop: |
157 | dquot_drop(inode); | 157 | dquot_drop(inode); |
158 | inode->i_flags |= S_NOQUOTA; | 158 | inode->i_flags |= S_NOQUOTA; |
159 | fail_unlock: | ||
160 | clear_nlink(inode); | 159 | clear_nlink(inode); |
161 | unlock_new_inode(inode); | 160 | unlock_new_inode(inode); |
162 | fail_put: | 161 | fail_put: |