summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-09-20 08:07:28 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-09-20 08:07:28 +1000
commitd1cec6d2a9d63411c70c6c37509129ea4afe07d8 (patch)
treee07f31b987151ea0863eaeddef9732af9c2e60cb
parent7ec9a1effa4f551897f91f3b017723a8adf011d9 (diff)
downloadlibdrm-d1cec6d2a9d63411c70c6c37509129ea4afe07d8.tar.gz
libdrm-d1cec6d2a9d63411c70c6c37509129ea4afe07d8.tar.bz2
libdrm-d1cec6d2a9d63411c70c6c37509129ea4afe07d8.zip
nouveau: fix thinko in drm version check
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-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 f450e303..91f9a27e 100644
--- a/nouveau/nouveau_device.c
+++ b/nouveau/nouveau_device.c
@@ -50,7 +50,7 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
return -EINVAL;
if ((ver->version_major == 0 && ver->version_patchlevel != 16) &&
- ver->version_major != 1) {
+ ver->version_major > 1) {
nouveau_device_close((void *)&nvdev);
return -EINVAL;
}