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:
1f48366
)
Btrfs: do not call kfree if kmalloc failed in btrfs_sysfs_add_super
author
Shen Feng
<shen@cn.fujitsu.com>
Mon, 5 Jan 2009 20:43:42 +0000
(15:43 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 5 Jan 2009 20:43:42 +0000
(15:43 -0500)
Signed-off-by: Shen Feng <shen@cn.fujitsu.com>
fs/btrfs/sysfs.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/sysfs.c
b/fs/btrfs/sysfs.c
index 300076e66765c282ab8973ad49b0ebf802a1e7c8..04087c020845ccd6c518bcccb078a5c697790971 100644
(file)
--- a/
fs/btrfs/sysfs.c
+++ b/
fs/btrfs/sysfs.c
@@
-212,14
+212,13
@@
int btrfs_sysfs_add_super(struct btrfs_fs_info *fs)
fs->super_kobj.kset = btrfs_kset;
error = kobject_init_and_add(&fs->super_kobj, &btrfs_super_ktype,
NULL, "%s", name);
+ kfree(name);
if (error)
goto fail;
- kfree(name);
return 0;
fail:
- kfree(name);
printk(KERN_ERR "btrfs: sysfs creation for super failed\n");
return error;
}