]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/kmod.c
Char: cyclades, dynamic ports
[karo-tx-linux.git] / kernel / kmod.c
index 11c584cd16b33eb3d2d831816b667fd07554313f..49cc4b9c1a8d8ad8a0a602d7ea4cf0a6fe900a0b 100644 (file)
@@ -165,6 +165,12 @@ static int ____call_usermodehelper(void *data)
        /* We can run anywhere, unlike our parent keventd(). */
        set_cpus_allowed(current, CPU_MASK_ALL);
 
+       /*
+        * Our parent is keventd, which runs with elevated scheduling priority.
+        * Avoid propagating that into the userspace child.
+        */
+       set_user_nice(current, 0);
+
        retval = -EPERM;
        if (current->fs->root)
                retval = kernel_execve(sub_info->path,