Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9795447f authored by Li Zefan's avatar Li Zefan Committed by Ingo Molnar
Browse files

lockdep: Fix file mode of lock_stat



/proc/lock_stat is writable.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <4A7BE7B6.10904@cn.fujitsu.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 1bbf2083
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -758,7 +758,8 @@ static int __init lockdep_proc_init(void)
		    &proc_lockdep_stats_operations);

#ifdef CONFIG_LOCK_STAT
	proc_create("lock_stat", S_IRUSR, NULL, &proc_lock_stat_operations);
	proc_create("lock_stat", S_IRUSR | S_IWUSR, NULL,
		    &proc_lock_stat_operations);
#endif

	return 0;