From: Dave Airlie Date: Wed, 23 Jan 2008 06:45:09 +0000 (+1000) Subject: i915/flush: get the ret the right way around X-Git-Tag: submit/1.0/20121108.012404~1023 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c57f43e3a266d247c8a2be6fd7702caab2dc009b;p=profile%2Fivi%2Flibdrm.git i915/flush: get the ret the right way around --- diff --git a/linux-core/i915_compat.c b/linux-core/i915_compat.c index cc02408..f3e0a08 100644 --- a/linux-core/i915_compat.c +++ b/linux-core/i915_compat.c @@ -104,7 +104,7 @@ static void intel_i965_g33_setup_chipset_flush(struct pci_dev *pdev) i9xx_private.ifp_resource.start = l64; i9xx_private.ifp_resource.end = l64 + PAGE_SIZE; ret = request_resource(&iomem_resource, &i9xx_private.ifp_resource); - if (!ret) { + if (ret) { i9xx_private.resource_valid = 0; printk("Failed inserting resource into tree\n"); }