nouveau: fix thinko in drm version check

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
main
Ben Skeggs 2010-09-20 08:07:28 +10:00
parent 7ec9a1effa
commit d1cec6d2a9
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ nouveau_device_open_existing(struct nouveau_device **dev, int close,
return -EINVAL; return -EINVAL;
if ((ver->version_major == 0 && ver->version_patchlevel != 16) && if ((ver->version_major == 0 && ver->version_patchlevel != 16) &&
ver->version_major != 1) { ver->version_major > 1) {
nouveau_device_close((void *)&nvdev); nouveau_device_close((void *)&nvdev);
return -EINVAL; return -EINVAL;
} }