diff options
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_tt.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_tt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index 4e19d0f9cc30..077ae9b2865d 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c | |||
@@ -311,7 +311,7 @@ int ttm_tt_swapin(struct ttm_tt *ttm) | |||
311 | goto out_err; | 311 | goto out_err; |
312 | 312 | ||
313 | copy_highpage(to_page, from_page); | 313 | copy_highpage(to_page, from_page); |
314 | page_cache_release(from_page); | 314 | put_page(from_page); |
315 | } | 315 | } |
316 | 316 | ||
317 | if (!(ttm->page_flags & TTM_PAGE_FLAG_PERSISTENT_SWAP)) | 317 | if (!(ttm->page_flags & TTM_PAGE_FLAG_PERSISTENT_SWAP)) |
@@ -361,7 +361,7 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistent_swap_storage) | |||
361 | copy_highpage(to_page, from_page); | 361 | copy_highpage(to_page, from_page); |
362 | set_page_dirty(to_page); | 362 | set_page_dirty(to_page); |
363 | mark_page_accessed(to_page); | 363 | mark_page_accessed(to_page); |
364 | page_cache_release(to_page); | 364 | put_page(to_page); |
365 | } | 365 | } |
366 | 366 | ||
367 | ttm_tt_unpopulate(ttm); | 367 | ttm_tt_unpopulate(ttm); |