]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fb1c257f2f8c359952244dfcd971e3025a72490
treeb36666d741153e2a86f641f109d26e6735514a24
parent3371596d18a128c7ef5ece8cbe365e47b3f08cb5
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