diff options
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 89be13c9e76..e41a08ffbe0 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -712,7 +712,7 @@ static ssize_t __write_ports_addxprt(char *buf) | |||
712 | int port, err; | 712 | int port, err; |
713 | struct net *net = &init_net; | 713 | struct net *net = &init_net; |
714 | 714 | ||
715 | if (sscanf(buf, "%15s %4u", transport, &port) != 2) | 715 | if (sscanf(buf, "%15s %5u", transport, &port) != 2) |
716 | return -EINVAL; | 716 | return -EINVAL; |
717 | 717 | ||
718 | if (port < 1 || port > USHRT_MAX) | 718 | if (port < 1 || port > USHRT_MAX) |