diff mbox series

[v5,09/18] compat_ioctl: handle SIOCOUTQNSD

Message ID 20190814205245.121691-4-arnd@arndb.de
State Superseded
Headers show
Series [v5,01/18] xfs: compat_ioctl: use compat_ptr() | expand

Commit Message

Arnd Bergmann Aug. 14, 2019, 8:49 p.m. UTC
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")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

---
 net/socket.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.20.0
diff mbox series

Patch

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);
 	}