From: jsg Date: Thu, 7 Apr 2022 06:46:27 +0000 (+0000) Subject: drm/i915: don't call free_mmap_offset when purging X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cfb9a990c614cb262bcf59f5ff1fc3c7a3a8e07c;p=openbsd drm/i915: don't call free_mmap_offset when purging From Matthew Auld d3f67ceaeb3f7ddabad1d6e8da29e44fd2634f65 in linux 5.15.y/5.15.27 4c2602ba8d74c35d550ed3d518809c697de08d88 in mainline linux --- diff --git a/sys/dev/pci/drm/i915/gem/i915_gem_pages.c b/sys/dev/pci/drm/i915/gem/i915_gem_pages.c index c3eda20c9b5..8a338bafd34 100644 --- a/sys/dev/pci/drm/i915/gem/i915_gem_pages.c +++ b/sys/dev/pci/drm/i915/gem/i915_gem_pages.c @@ -162,7 +162,6 @@ retry: /* Immediately discard the backing storage */ void i915_gem_object_truncate(struct drm_i915_gem_object *obj) { - drm_gem_free_mmap_offset(&obj->base); if (obj->ops->truncate) obj->ops->truncate(obj); }