aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Skeggs2010-09-20 22:02:07 -0500
committerBen Skeggs2010-09-20 22:02:07 -0500
commit81fa7a9f56b1efb04658db921e5228c102548921 (patch)
treeee4383521a0b758df15185c67089c12a2b5114bc /nouveau
parentd1cec6d2a9d63411c70c6c37509129ea4afe07d8 (diff)
downloadlibdrm-81fa7a9f56b1efb04658db921e5228c102548921.tar.gz
libdrm-81fa7a9f56b1efb04658db921e5228c102548921.tar.xz
libdrm-81fa7a9f56b1efb04658db921e5228c102548921.zip
nouveau: fix drm version check some more
... and make a mental note to not push commits before having coffee Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'nouveau')
-rw-r--r--nouveau/nouveau_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nouveau/nouveau_device.c b/nouveau/nouveau_device.c
index 91f9a27e..9a091fba 100644
--- a/nouveau/nouveau_device.c
+++ b/nouveau/nouveau_device.c
@@ -49,7 +49,7 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
49 if (!ver) 49 if (!ver)
50 return -EINVAL; 50 return -EINVAL;
51 51
52 if ((ver->version_major == 0 && ver->version_patchlevel != 16) && 52 if ((ver->version_major == 0 && ver->version_patchlevel != 16) ||
53 ver->version_major > 1) { 53 ver->version_major > 1) {
54 nouveau_device_close((void *)&nvdev); 54 nouveau_device_close((void *)&nvdev);
55 return -EINVAL; 55 return -EINVAL;