summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2014-02-02 10:54:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2014-02-02 10:54:11 +0000
commit614d9d3009ec08f1d2b161f8c3f6ff8cd0cd3ec3 (patch)
tree19755594e81aff08112a68e4c8f96189a9e903ac /sys
parent26062e34afbcc74264f2a4f4f74c349693bd3eff (diff)
Add missing DRM_UNLOCK() in error path.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/drm/i915/i915_gem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c
index 7dec0527011..5610817caca 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.67 2014/01/30 15:10:47 kettenis Exp $ */
+/* $OpenBSD: i915_gem.c,v 1.68 2014/02/02 10:54:10 kettenis Exp $ */
/*
* Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org>
*
@@ -1475,6 +1475,7 @@ i915_gem_fault(struct drm_gem_object *gem_obj, struct uvm_faultinfo *ufi,
locked = uvmfault_relock(ufi);
}
if (!locked) {
+ DRM_UNLOCK();
dev_priv->entries--;
return (VM_PAGER_REFAULT);
}