]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/irq/manage.c
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
[linux.git] / kernel / irq / manage.c
index e8f7f179bf77e6a721deaaf349462edbc14ef8f3..9d50fbe5531a35a433d415bee40d391373890100 100644 (file)
@@ -1255,8 +1255,7 @@ setup_irq_thread(struct irqaction *new, unsigned int irq, bool secondary)
         * the thread dies to avoid that the interrupt code
         * references an already freed task_struct.
         */
-       get_task_struct(t);
-       new->thread = t;
+       new->thread = get_task_struct(t);
        /*
         * Tell the thread to set its affinity. This is
         * important for shared interrupt handlers as we do