diff options
Diffstat (limited to 'security/inode.c')
-rw-r--r-- | security/inode.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/security/inode.c b/security/inode.c index 91503b79c5f8..0e37e4fba8fa 100644 --- a/security/inode.c +++ b/security/inode.c | |||
@@ -215,19 +215,17 @@ void securityfs_remove(struct dentry *dentry) | |||
215 | } | 215 | } |
216 | EXPORT_SYMBOL_GPL(securityfs_remove); | 216 | EXPORT_SYMBOL_GPL(securityfs_remove); |
217 | 217 | ||
218 | static struct kobject *security_kobj; | ||
219 | |||
220 | static int __init securityfs_init(void) | 218 | static int __init securityfs_init(void) |
221 | { | 219 | { |
222 | int retval; | 220 | int retval; |
223 | 221 | ||
224 | security_kobj = kobject_create_and_add("security", kernel_kobj); | 222 | retval = sysfs_create_mount_point(kernel_kobj, "security"); |
225 | if (!security_kobj) | 223 | if (retval) |
226 | return -EINVAL; | 224 | return retval; |
227 | 225 | ||
228 | retval = register_filesystem(&fs_type); | 226 | retval = register_filesystem(&fs_type); |
229 | if (retval) | 227 | if (retval) |
230 | kobject_put(security_kobj); | 228 | sysfs_remove_mount_point(kernel_kobj, "security"); |
231 | return retval; | 229 | return retval; |
232 | } | 230 | } |
233 | 231 | ||