]> git.baikalelectronics.ru Git - kernel.git/commit
rfkill: uapi: fix RFKILL_IOCTL_MAX_SIZE ioctl request definition
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Fri, 6 May 2022 17:24:54 +0000 (17:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 May 2022 18:18:52 +0000 (20:18 +0200)
commitbd6da8aaf08da1ac3776c6cd47b7d09c3e3601f3
tree58dc4c709f52262c18563f1ab51676c729ae3eaa
parent1aa4a1f3bdaee530f30f4ee7988d148248553bd5
rfkill: uapi: fix RFKILL_IOCTL_MAX_SIZE ioctl request definition

commit 87804a8176130724d1b4f15be521e76b4cefb002 upstream.

The definition of RFKILL_IOCTL_MAX_SIZE introduced by commit
9379e4c9cc63 ("rfkill: make new event layout opt-in") is unusable
since it is based on RFKILL_IOC_EXT_SIZE which has not been defined.
Fix that by replacing the undefined constant with the constant which
is intended to be used in this definition.

Fixes: 9379e4c9cc63 ("rfkill: make new event layout opt-in")
Cc: stable@vger.kernel.org # 5.11+
Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Link: https://lore.kernel.org/r/20220506172454.120319-1-glebfm@altlinux.org
[add commit message provided later by Dmitry]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/rfkill.h