]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
compat_ioctl: handle SIOCOUTQNSD
authorArnd Bergmann <arnd@arndb.de>
Mon, 3 Jun 2019 21:06:00 +0000 (23:06 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Oct 2019 15:23:46 +0000 (17:23 +0200)
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>
net/socket.c

index 6a9ab7a8b1d2c5059752a9147c2f0fd1aea4f44d..a60f48ab2130da1c1681b2e887f6e2caf58da6f0 100644 (file)
@@ -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);
        }