summaryrefslogtreecommitdiff
path: root/linux-core/i915_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/i915_compat.c')
-rw-r--r--linux-core/i915_compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/i915_compat.c b/linux-core/i915_compat.c
index cc024085..f3e0a081 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");
}