diff options
author | 2019-12-31 23:57:45 +0000 | |
---|---|---|
committer | 2019-12-31 23:57:45 +0000 | |
commit | 64ce7eeaf6787bb5e246b63b10a17b55b041f1bf (patch) | |
tree | 46f0ace081714e3625561d8f1a73ae3b116a0880 | |
parent | drm/amdgpu: grab the id mgr lock while accessing passid_mapping (diff) | |
download | wireguard-openbsd-64ce7eeaf6787bb5e246b63b10a17b55b041f1bf.tar.xz wireguard-openbsd-64ce7eeaf6787bb5e246b63b10a17b55b041f1bf.zip |
drm/drm_vblank: Change EINVAL by the correct errno
From Rodrigo Siqueira
5d60d398148d00a6fc8f0e1844055be3441e1d01 in linux 4.19.y/4.19.92
aed6105b28b10613f16c0bfe97525fe5a23338df in mainline linux
-rw-r--r-- | sys/dev/pci/drm/drm_vblank.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/drm/drm_vblank.c b/sys/dev/pci/drm/drm_vblank.c index f695c2344f5..f7f73dcf3cb 100644 --- a/sys/dev/pci/drm/drm_vblank.c +++ b/sys/dev/pci/drm/drm_vblank.c @@ -1586,7 +1586,7 @@ int drm_wait_vblank_ioctl(struct drm_device *dev, void *data, unsigned int flags, pipe, high_pipe; if (!dev->irq_enabled) - return -EINVAL; + return -EOPNOTSUPP; if (vblwait->request.type & _DRM_VBLANK_SIGNAL) return -EINVAL; @@ -1827,7 +1827,7 @@ int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data, return -EINVAL; if (!dev->irq_enabled) - return -EINVAL; + return -EOPNOTSUPP; crtc = drm_crtc_find(dev, file_priv, get_seq->crtc_id); if (!crtc) @@ -1885,7 +1885,7 @@ int drm_crtc_queue_sequence_ioctl(struct drm_device *dev, void *data, return -EINVAL; if (!dev->irq_enabled) - return -EINVAL; + return -EOPNOTSUPP; crtc = drm_crtc_find(dev, file_priv, queue_seq->crtc_id); if (!crtc) |