summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-03 23:06:00 +0200
committerArnd Bergmann <arnd@arndb.de>2019-10-23 17:23:46 +0200
commit9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167 (patch)
tree35e4caaea47908e19b1ab3dbaacbfe9e4f9f4fa7
parentaf_unix: add compat_ioctl support (diff)
downloadlinux-9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167.tar.xz
linux-9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167.zip
compat_ioctl: handle SIOCOUTQNSD
Unlike the normal SIOCOUTQ, SIOCOUTQNSD was never handled in compat mode. Add it to the common socket compat handler along with similar ones. Fixes: 2f4e1b397097 ("tcp: ioctl type SIOCOUTQNSD returns amount of data not sent") Cc: Eric Dumazet <edumazet@google.com> Cc: netdev@vger.kernel.org Cc: "David S. Miller" <davem@davemloft.net> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r--net/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket.c b/net/socket.c
index 6a9ab7a8b1d2..a60f48ab2130 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -3452,6 +3452,7 @@ static int compat_sock_ioctl_trans(struct file *file, struct socket *sock,
case SIOCSARP:
case SIOCGARP:
case SIOCDARP:
+ case SIOCOUTQNSD:
case SIOCATMARK:
return sock_do_ioctl(net, sock, cmd, arg);
}