]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
NFSD: If port value written to /proc/fs/nfsd/portlist is invalid, return EINVAL
authorChuck Lever <chuck.lever@oracle.com>
Thu, 19 Mar 2009 00:45:51 +0000 (20:45 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 28 Mar 2009 19:53:42 +0000 (15:53 -0400)
commitadbbe929569e6eec8ff9feca23f1f2b40b42853d
tree2a22bb3d333f1471c1c6629e5947f56dd850611a
parentefb3288b423d7e3533a68dccecaa05a56a281a4e
NFSD: If port value written to /proc/fs/nfsd/portlist is invalid, return EINVAL

Make sure port value read from user space by write_ports is valid before
passing it to svc_find_xprt().  If it wasn't, the writer would get ENOENT
instead of EINVAL.

Noticed-by: J. Bruce Fields <bfields@fieldses.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfsd/nfsctl.c