vfs: Make fs_parse() handle fs_param_is_fd-type params better
authorDavid Howells <dhowells@redhat.com>
Mon, 25 Mar 2019 16:38:31 +0000 (16:38 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 13 Sep 2019 01:06:14 +0000 (21:06 -0400)
commit74983ac20aeafc88d9ceed64a8bf2a9024c488d5
treeb36666d741153e2a86f641f109d26e6735514a24
parentf32356261d44d580649a7abce1156d15d49cf20f
vfs: Make fs_parse() handle fs_param_is_fd-type params better

Make fs_parse() handle fs_param_is_fd-type parameters that are passed a
string by converting it to an integer (in addition to handling direct fd
specification).

Also range check the integer.

[fix from  Yin Fengwei folded]

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fs_parser.c