summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-06-04 00:06:00 +0300
committerArnd Bergmann <arnd@arndb.de>2019-10-23 18:23:46 +0300
commit9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167 (patch)
tree35e4caaea47908e19b1ab3dbaacbfe9e4f9f4fa7 /net/socket.c
parent5f6beb9e0f633f3cc845cdd67973c506372931b4 (diff)
downloadlinux-9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167.tar.xz
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>
Diffstat (limited to 'net/socket.c')
-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);
}