|
@@ -615,7 +615,7 @@ static void ttm_page_pool_fill_locked(struct ttm_page_pool *pool,
|
|
} else {
|
|
} else {
|
|
pr_err("Failed to fill pool (%p)\n", pool);
|
|
pr_err("Failed to fill pool (%p)\n", pool);
|
|
/* If we have any pages left put them to the pool. */
|
|
/* If we have any pages left put them to the pool. */
|
|
- list_for_each_entry(p, &pool->list, lru) {
|
|
|
|
|
|
+ list_for_each_entry(p, &new_pages, lru) {
|
|
++cpages;
|
|
++cpages;
|
|
}
|
|
}
|
|
list_splice(&new_pages, &pool->list);
|
|
list_splice(&new_pages, &pool->list);
|