linux/fs/debugfs
Greg Kroah-Hartman a2cb3de396 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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-05-02 21:41:29 +01:00
..
file.c debugfs: write_file_bool() - ensure strtobool() operates on valid data 2013-06-03 13:55:02 -07:00
inode.c debugfs: fix debugfs_rename parameter checking 2019-05-02 21:41:29 +01:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00