projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scftorture: Shut down if nonsensical arguments given
[linux-2.6-microblaze.git]
/
kernel
/
scftorture.c
diff --git
a/kernel/scftorture.c
b/kernel/scftorture.c
index
bc3f8e2
..
31b458b
100644
(file)
--- a/
kernel/scftorture.c
+++ b/
kernel/scftorture.c
@@
-651,6
+651,10
@@
static int __init scf_torture_init(void)
unwind:
torture_init_end();
scf_torture_cleanup();
+ if (shutdown_secs) {
+ WARN_ON(!IS_MODULE(CONFIG_SCF_TORTURE_TEST));
+ kernel_power_off();
+ }
return firsterr;
}