diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-23 11:27:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-25 12:56:32 +0100 |
commit | d88c93f090f708c18195553b352b9f205e65418f (patch) | |
tree | 76d7cecb24578d4a38e2aca3f827c52501508afe /crypto/api.c | |
parent | 3a34c986324c07dde32903f7bb262e6138e77c2a (diff) | |
download | linux-d88c93f090f708c18195553b352b9f205e65418f.tar.bz2 |
debugfs: fix debugfs_rename parameter checking
debugfs_rename() needs to check that the dentries passed into it really
are valid, as sometimes they are not (i.e. if the return value of
another debugfs call is passed into this one.) So fix this up by
properly checking if the two parent directories are errors (they are
allowed to be NULL), and if the dentry to rename is not NULL or an
error.
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/api.c')
0 files changed, 0 insertions, 0 deletions