diff options
Diffstat (limited to 'net/netrom')
-rw-r--r-- | net/netrom/af_netrom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c index 732152f718e0..c329b474eace 100644 --- a/net/netrom/af_netrom.c +++ b/net/netrom/af_netrom.c | |||
@@ -1244,7 +1244,8 @@ static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) | |||
1244 | case SIOCADDRT: | 1244 | case SIOCADDRT: |
1245 | case SIOCDELRT: | 1245 | case SIOCDELRT: |
1246 | case SIOCNRDECOBS: | 1246 | case SIOCNRDECOBS: |
1247 | if (!capable(CAP_NET_ADMIN)) return -EPERM; | 1247 | if (!capable(CAP_NET_ADMIN)) |
1248 | return -EPERM; | ||
1248 | return nr_rt_ioctl(cmd, argp); | 1249 | return nr_rt_ioctl(cmd, argp); |
1249 | 1250 | ||
1250 | default: | 1251 | default: |