summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-08-10 13:22:03 +0200
committerDavid S. Miller <davem@davemloft.net>2018-08-11 12:13:49 -0700
commit4f5f85e9a70e13c8919e26609914253d18fbf858 (patch)
treec7de707b44900ecbd33e1ca3c2b178988d0e5698 /net
parent7390ed8a405013d0a7e1f4dc8ac495e0ac04996f (diff)
downloadlinux-4f5f85e9a70e13c8919e26609914253d18fbf858.tar.gz
linux-4f5f85e9a70e13c8919e26609914253d18fbf858.tar.bz2
linux-4f5f85e9a70e13c8919e26609914253d18fbf858.zip
l2tp: let pppol2tp_ioctl() fallback to dev_ioctl()
Return -ENOIOCTLCMD for unknown ioctl commands. This lets dev_ioctl() handle generic socket ioctls like SIOCGIFNAME or SIOCGIFINDEX. PF_PPPOX/PX_PROTO_OL2TP was one of the few socket types not honouring this mechanism. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/l2tp/l2tp_ppp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/l2tp/l2tp_ppp.c b/net/l2tp/l2tp_ppp.c
index e2eea60bf875..62f2d3f1e431 100644
--- a/net/l2tp/l2tp_ppp.c
+++ b/net/l2tp/l2tp_ppp.c
@@ -1137,7 +1137,7 @@ static int pppol2tp_ioctl(struct socket *sock, unsigned int cmd,
break;
default:
- return -ENOSYS;
+ return -ENOIOCTLCMD;
}
return 0;