git://git.onelab.eu
/
procprotect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c48fc2d
)
Add essential check in case userspace fails to add it
author
Sapan Bhatia
<gwsapan@gmail.com>
Tue, 21 May 2013 20:49:20 +0000
(16:49 -0400)
committer
Sapan Bhatia
<gwsapan@gmail.com>
Tue, 21 May 2013 20:49:20 +0000
(16:49 -0400)
procprotect.c
patch
|
blob
|
history
diff --git
a/procprotect.c
b/procprotect.c
index
2672ef8
..
9fdaab3
100644
(file)
--- 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;
}