Commit 8b4b4582d4923f7d10fde369704eb784fe5e3101

Authored by Arnd Bergmann
Committed by Greg Kroah-Hartman
1 parent 60cc5607bd

compat_ioctl: handle SIOCOUTQNSD

commit 9d7bf41fafa5b5ddd4c13eb39446b0045f0a8167 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -3532,6 +3532,7 @@
3532 3532 case SIOCSARP:
3533 3533 case SIOCGARP:
3534 3534 case SIOCDARP:
  3535 + case SIOCOUTQNSD:
3535 3536 case SIOCATMARK:
3536 3537 return sock_do_ioctl(net, sock, cmd, arg);
3537 3538 }