From 4e511d6c5e0672555faea0090bc3999960bc66e5 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Sun, 25 Apr 2010 22:35:13 +0000 Subject: Argh, commited the wrong diff. This was the reversed test that found the libdrm bug recently. Correct to what was intended. --- sys/dev/pci/drm/i915_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/drm/i915_drv.c b/sys/dev/pci/drm/i915_drv.c index 237b6c335cb..7760c2b5ce9 100644 --- a/sys/dev/pci/drm/i915_drv.c +++ b/sys/dev/pci/drm/i915_drv.c @@ -4714,7 +4714,7 @@ i915_gem_set_tiling(struct drm_device *dev, void *data, obj_priv = (struct inteldrm_obj *)obj; drm_hold_object(obj); - if (obj_priv->pin_count == 0) { + if (obj_priv->pin_count != 0) { ret = EBUSY; goto out; } -- cgit v1.2.3