Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9aacccf authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds
Browse files

make dmapool code use __set_current_state()

parent 8e893469
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -302,7 +302,7 @@ dma_pool_alloc (struct dma_pool *pool, gfp_t mem_flags, dma_addr_t *handle)
		if (mem_flags & __GFP_WAIT) {
			DECLARE_WAITQUEUE (wait, current);

			current->state = TASK_INTERRUPTIBLE;
			__set_current_state(TASK_INTERRUPTIBLE);
			add_wait_queue (&pool->waitq, &wait);
			spin_unlock_irqrestore (&pool->lock, flags);