projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a3db18
)
fs/btrfs/volumes.c: add missing free_fs_devices
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sat, 14 Apr 2012 09:24:33 +0000
(11:24 +0200)
committer
David Sterba
<dsterba@suse.cz>
Wed, 18 Apr 2012 17:22:28 +0000
(19:22 +0200)
Free fs_devices as done in the error-handling code just below.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
fs/btrfs/volumes.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index ce289af526f086e812f345e7d0a2984e5b9f7812..3b984173d25bc2ee88d86e20c3a23778850cf133 100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-4352,8
+4352,10
@@
static int open_seed_devices(struct btrfs_root *root, u8 *fsid)
ret = __btrfs_open_devices(fs_devices, FMODE_READ,
root->fs_info->bdev_holder);
- if (ret)
+ if (ret) {
+ free_fs_devices(fs_devices);
goto out;
+ }
if (!fs_devices->seeding) {
__btrfs_close_devices(fs_devices);