@@ -646,7 +646,7 @@ static unsigned ttm_page_pool_get_pages(struct ttm_page_pool *pool,
list_splice_init(&pool->list, pages);
count -= pool->npages;
pool->npages = 0;
- goto out;
+ goto unlock;
}
/* find the last pages to include for requested number of pages. Split
* pool to begin and halve it to reduce search space. */
@@ -667,7 +667,7 @@ static unsigned ttm_page_pool_get_pages(struct ttm_page_pool *pool,
list_cut_position(pages, &pool->list, p);
pool->npages -= count;
count = 0;
-out:
+ unlock:
spin_unlock_irqrestore(&pool->lock, irq_flags);
return count;
}