aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-05-03 14:43:50 +0000
committerJonathan Cameron <[email protected]>2021-05-10 13:01:48 +0000
commitaf0670b0bf1b116fd729b1b1011cf814bc34e12e (patch)
treefd5adaf9bb141c9b1d8959c254b75fc73058860c /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentiio: core: fix ioctl handlers removal (diff)
downloadkernel-af0670b0bf1b116fd729b1b1011cf814bc34e12e.tar.gz
kernel-af0670b0bf1b116fd729b1b1011cf814bc34e12e.zip
iio: core: return ENODEV if ioctl is unknown
When the ioctl() mechanism was introduced in IIO core to centralize the registration of all ioctls in one place via commit 8dedcc3eee3ac ("iio: core: centralize ioctl() calls to the main chardev"), the return code was changed from ENODEV to EINVAL, when the ioctl code isn't known. This was done by accident. This change reverts back to the old behavior, where if the ioctl() code isn't known, ENODEV is returned (vs EINVAL). This was brought into perspective by this patch: https://lore.kernel.org/linux-iio/[email protected]/ Fixes: 8dedcc3eee3ac ("iio: core: centralize ioctl() calls to the main chardev") Signed-off-by: Alexandru Ardelean <[email protected]> Reviewed-by: Nuno Sá <[email protected]> Tested-by: Paul Cercueil <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions