diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-23 05:28:40 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-23 05:28:40 +0100 |
commit | e825196d48d2b89a6ec3a8eff280098d2a78207e (patch) | |
tree | 719a3ab8be442c786a9d5b02276ad8aaf989075a /fs/namei.c | |
parent | vfs: Don't let __fdget_pos() get FMODE_PATH files (diff) | |
download | linux-e825196d48d2b89a6ec3a8eff280098d2a78207e.tar.xz linux-e825196d48d2b89a6ec3a8eff280098d2a78207e.zip |
make prepend_name() work correctly when called with negative *buflen
In all callchains leading to prepend_name(), the value left in *buflen
is eventually discarded unused if prepend_name() has returned a negative.
So we are free to do what prepend() does, and subtract from *buflen
*before* checking for underflow (which turns into checking the sign
of subtraction result, of course).
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions