Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 260883c8 authored by Dave Airlie's avatar Dave Airlie
Browse files

i915: fix freeing path for gem phys objects.



This off-by-one was pointed out by Jesse Barnes.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent ad2563c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3364,7 +3364,7 @@ void i915_gem_free_all_phys_object(struct drm_device *dev)
{
{
	int i;
	int i;


	for (i = 0; i < I915_MAX_PHYS_OBJECT; i++)
	for (i = I915_GEM_PHYS_CURSOR_0; i <= I915_MAX_PHYS_OBJECT; i++)
		i915_gem_free_phys_object(dev, i);
		i915_gem_free_phys_object(dev, i);
}
}