]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Fix TIOCGPTPEER ioctl definition
authorGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Mon, 17 Jul 2017 13:29:46 +0000 (16:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jul 2017 15:04:41 +0000 (17:04 +0200)
commit7f004edc5cc19cd04d7f037cc25a3eec826f8d2e
treee24273feebc936eea5f57f4eb84bee71f37e9c6b
parent035b576375c0da96fde1d968de59fba0ff15221a
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: c6b58d7828e4 ("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>
arch/alpha/include/uapi/asm/ioctls.h
arch/mips/include/uapi/asm/ioctls.h
arch/parisc/include/uapi/asm/ioctls.h
arch/powerpc/include/uapi/asm/ioctls.h
arch/sh/include/uapi/asm/ioctls.h
arch/sparc/include/uapi/asm/ioctls.h
arch/xtensa/include/uapi/asm/ioctls.h
include/uapi/asm-generic/ioctls.h