]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/irq/manage.c
Merge tag 'drm-next-2019-09-18' of git://anongit.freedesktop.org/drm/drm
[linux.git] / kernel / irq / manage.c
index 97de1b7d43af7f73b28946b130319bf9cc943053..1753486b440cb031315ac089d5e3af2b9b3d4a24 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