diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-06-27 09:35:02 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-06-27 09:35:02 (GMT) |
commit | 630741fb60ac4e286f5396403c0d864d924c02bc (patch) | |
tree | 16eb952c3653386c6d1ad99e369615dfe65e4d67 /kernel/kcov.c | |
parent | 807e5b80687c06715d62df51a5473b231e3e8b15 (diff) | |
parent | ea1dc6fc6242f991656e35e2ed3d90ec1cd13418 (diff) | |
download | linux-630741fb60ac4e286f5396403c0d864d924c02bc.tar.xz |
Merge branch 'sched/urgent' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/kcov.c')
-rw-r--r-- | kernel/kcov.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kernel/kcov.c b/kernel/kcov.c index a02f2dd..8d44b3f 100644 --- a/kernel/kcov.c +++ b/kernel/kcov.c @@ -264,7 +264,12 @@ static const struct file_operations kcov_fops = { static int __init kcov_init(void) { - if (!debugfs_create_file("kcov", 0600, NULL, NULL, &kcov_fops)) { + /* + * The kcov debugfs file won't ever get removed and thus, + * there is no need to protect it against removal races. The + * use of debugfs_create_file_unsafe() is actually safe here. + */ + if (!debugfs_create_file_unsafe("kcov", 0600, NULL, NULL, &kcov_fops)) { pr_err("failed to create kcov in debugfs\n"); return -ENOMEM; } |