nouveau: fix thinko in drm version check
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>main
parent
7ec9a1effa
commit
d1cec6d2a9
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue