aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/uapi/asm/ioctls.h
diff options
context:
space:
mode:
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>2017-07-17 09:29:46 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-17 11:04:41 -0400
commitc6325179238f1d4683edbec53d8322575d76d7e2 (patch)
treee24273feebc936eea5f57f4eb84bee71f37e9c6b /arch/sh/include/uapi/asm/ioctls.h
parent6509f3096263ca2714ec938439a832b302a3a65e (diff)
tty: Fix TIOCGPTPEER ioctl definition
This ioctl does nothing to justify an _IOC_READ or _IOC_WRITE flag because it doesn't copy anything from/to userspace to access the argument. Fixes: 54ebbfb16034 ("tty: add TIOCGPTPEER ioctl") Signed-off-by: Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> Acked-by: Aleksa Sarai <asarai@suse.de> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sh/include/uapi/asm/ioctls.h')
-rw-r--r--arch/sh/include/uapi/asm/ioctls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/uapi/asm/ioctls.h b/arch/sh/include/uapi/asm/ioctls.h
index eec7901e9e65..787bac9f67da 100644
--- a/arch/sh/include/uapi/asm/ioctls.h
+++ b/arch/sh/include/uapi/asm/ioctls.h
@@ -93,7 +93,7 @@
93#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */ 93#define TIOCGPKT _IOR('T', 0x38, int) /* Get packet mode state */
94#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */ 94#define TIOCGPTLCK _IOR('T', 0x39, int) /* Get Pty lock state */
95#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */ 95#define TIOCGEXCL _IOR('T', 0x40, int) /* Get exclusive mode state */
96#define TIOCGPTPEER _IOR('T', 0x41, int) /* Safely open the slave */ 96#define TIOCGPTPEER _IO('T', 0x41) /* Safely open the slave */
97 97
98#define TIOCSERCONFIG _IO('T', 83) /* 0x5453 */ 98#define TIOCSERCONFIG _IO('T', 83) /* 0x5453 */
99#define TIOCSERGWILD _IOR('T', 84, int) /* 0x5454 */ 99#define TIOCSERGWILD _IOR('T', 84, int) /* 0x5454 */