linux-stable/fs/debugfs
Greg Kroah-Hartman c619140d48 debugfs: fix debugfs_rename parameter checking
commit d88c93f090 upstream.

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>
2019-02-15 08:10:11 +01:00
..
file.c debugfs: Re-use kstrtobool_from_user() 2018-05-14 16:48:18 +02:00
inode.c debugfs: fix debugfs_rename parameter checking 2019-02-15 08:10:11 +01:00
internal.h debugfs: Remove redundant license text 2017-11-07 20:25:03 +01:00
Makefile