diff options
author | 2023-11-01 20:41:38 +0100 | |
---|---|---|
committer | 2023-11-24 20:03:59 +0100 | |
commit | f52c8fba984c7ca1ee687504862a4f8b3c5ef854 (patch) | |
tree | eb4cd763275eb148241a6518373232698a2b9662 /net/core/page_pool_user.c | |
parent | MAINTAINERS: update iwlwifi maintainers (diff) | |
download | wireguard-linux-f52c8fba984c7ca1ee687504862a4f8b3c5ef854.tar.xz wireguard-linux-f52c8fba984c7ca1ee687504862a4f8b3c5ef854.zip |
rfkill: return ENOTTY on invalid ioctl
For unknown ioctls the correct error is
ENOTTY "Inappropriate ioctl for device".
ENOSYS as returned before should only be used to
indicate that a syscall is not available at all.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Link: https://lore.kernel.org/r/20231101-rfkill-ioctl-enosys-v1-1-5bf374fabffe@weissschuh.net
[in theory this breaks userspace API, but it was discussed and
researched, and nothing found relying on the current behaviour]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/core/page_pool_user.c')
0 files changed, 0 insertions, 0 deletions