diff options
author | Ben Widawsky | 2013-05-31 14:46:19 -0700 |
---|---|---|
committer | Daniel Vetter | 2013-06-03 10:47:56 +0200 |
commit | dd53e1b0ed82ba72b2e9f11ae9c3d38bb82113cc (patch) | |
tree | 4cde97d757479dc3fbb73499a4c23bddd9db3f9e /drivers | |
parent | e29c32da531dfd94cffb150fd69760605739fb3a (diff) |
drm/i915: Make stolen use pin pages
This makes it easier to catch leaks.
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_stolen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_stolen.c b/drivers/gpu/drm/i915/i915_gem_stolen.c index 89cbfab9570e..bc593e353576 100644 --- a/drivers/gpu/drm/i915/i915_gem_stolen.c +++ b/drivers/gpu/drm/i915/i915_gem_stolen.c @@ -279,7 +279,7 @@ _i915_gem_object_create_stolen(struct drm_device *dev, goto cleanup; obj->has_dma_mapping = true; - obj->pages_pin_count = 1; + i915_gem_object_pin_pages(obj); obj->stolen = stolen; obj->base.write_domain = I915_GEM_DOMAIN_GTT; |