diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index 7647abfe189081dcec38eace34025899dd531a99..fbae8674e491f105269c30a1f10e1c9c4b9929cc 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c @@ -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);