From 98b6a7899aa7401a0e8143132f9b9b4fb628ad7e Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Fri, 13 Sep 2013 13:00:01 +0000 Subject: Fix sign of returned error code. ok jsg@ --- sys/dev/pci/drm/i915/i915_gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') 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 * @@ -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); } -- cgit v1.2.3