]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/sys.c
Merge branch 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / kernel / sys.c
index f0c10385f30c0cc8b5a7901289f71006e6615679..e4128b278f2375dc4e91c7244fbb4117b5230fea 100644 (file)
@@ -314,6 +314,7 @@ void kernel_restart_prepare(char *cmd)
 {
        blocking_notifier_call_chain(&reboot_notifier_list, SYS_RESTART, cmd);
        system_state = SYSTEM_RESTART;
+       usermodehelper_disable();
        device_shutdown();
        syscore_shutdown();
 }
@@ -343,6 +344,7 @@ static void kernel_shutdown_prepare(enum system_states state)
        blocking_notifier_call_chain(&reboot_notifier_list,
                (state == SYSTEM_HALT)?SYS_HALT:SYS_POWER_OFF, NULL);
        system_state = state;
+       usermodehelper_disable();
        device_shutdown();
 }
 /**