projects
/
profile
/
common
/
platform
/
kernel
/
linux-artik7.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfebd8b
)
btrfs: fix error labels in init_btrfs_fs
author
David Sterba
<dsterba@suse.cz>
Tue, 29 Jul 2014 22:58:37 +0000
(
00:58
+0200)
committer
David Sterba
<dsterba@suse.cz>
Thu, 2 Oct 2014 15:30:29 +0000
(17:30 +0200)
btrfs_interface_init rarely fails but we could leak the prelim_ref slab.
Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/super.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index b1d2a42f379d0a56241136f1e625d9eaa706ae94..b915d7704f19d22a212aed462d8a0b65653db8b0 100644
(file)
--- a/
fs/btrfs/super.c
+++ b/
fs/btrfs/super.c
@@
-1999,11
+1999,11
@@
static int __init init_btrfs_fs(void)
err = btrfs_prelim_ref_init();
if (err)
- goto free_
prelim
_ref;
+ goto free_
delayed
_ref;
err = btrfs_interface_init();
if (err)
- goto free_
delayed
_ref;
+ goto free_
prelim
_ref;
btrfs_init_lockdep();