From: kettenis Date: Wed, 7 Oct 2015 09:53:00 +0000 (+0000) Subject: In i915_gem_fault(), move the "out" label after the switch state such that we X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=6a2322845436dc420316c65f14883a96dd9a047c;p=openbsd In i915_gem_fault(), move the "out" label after the switch state such that we don't interpret one of the VM_PAGER_XXX return values as an unhandled errno value and return the intended code instead of VM_PAGER_ERROR. ok jsg@ --- diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 5741015b00f..cca867656f1 100644 --- a/sys/dev/pci/drm/i915/i915_gem.c +++ b/sys/dev/pci/drm/i915/i915_gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i915_gem.c,v 1.102 2015/09/30 06:29:09 kettenis Exp $ */ +/* $OpenBSD: i915_gem.c,v 1.103 2015/10/07 09:53:00 kettenis Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth * @@ -1659,7 +1659,7 @@ unlock: uvmfault_unlockall(ufi, ufi->entry->aref.ar_amap, NULL, NULL); mutex_unlock(&dev->struct_mutex); pmap_update(ufi->orig_map->pmap); -out: + switch (ret) { case -EIO: /* @@ -1700,6 +1700,7 @@ out: break; } +out: intel_runtime_pm_put(dev_priv); return ret; }