diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-09-13 13:00:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2013-09-13 13:00:01 +0000 |
commit | 98b6a7899aa7401a0e8143132f9b9b4fb628ad7e (patch) | |
tree | ae103d616fe57639bc97264d8c19f2b490766598 /sys/dev/pci | |
parent | e9d2428f919b38fef0589bcb82f2512e7f5cfeca (diff) |
Fix sign of returned error code.
ok jsg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/drm/i915/i915_gem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/i915_gem.c b/sys/dev/pci/drm/i915/i915_gem.c index 2cd838fdd05..5f223b734a4 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.34 2013/09/10 03:40:39 jsg Exp $ */ +/* $OpenBSD: i915_gem.c,v 1.35 2013/09/13 13:00:00 kettenis Exp $ */ /* * Copyright (c) 2008-2009 Owain G. Ainsworth <oga@openbsd.org> * @@ -1047,7 +1047,7 @@ static int __wait_seqno(struct intel_ring_buffer *ring, u32 seqno, if (i915_seqno_passed(ring->get_seqno(ring, false), seqno) || dev_priv->mm.wedged) break; - ret = msleep(ring, &dev_priv->irq_lock, + ret = -msleep(ring, &dev_priv->irq_lock, PZERO | (interruptible ? PCATCH : 0), "gemwt", 0); } |