From bc1e99f9399432d94750f7b5dc65d0a1d5eddbae Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Tue, 21 May 2013 16:49:20 -0400 Subject: [PATCH] Add essential check in case userspace fails to add it --- procprotect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/procprotect.c b/procprotect.c index 2672ef8..9fdaab3 100644 --- a/procprotect.c +++ b/procprotect.c @@ -345,6 +345,7 @@ static int __init procprotect_init(void) proc_entry = create_proc_entry("procprotect", 0644, NULL); proc_entry->write_proc = procfile_write; + add_entry("/proc/sysrq-trigger"); return ret; } -- 2.43.0