linux-brain/fs/debugfs
Greg Kroah-Hartman b01311758a 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:07:38 +01:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file.c debugfs: propagate release() call result 2016-09-27 12:45:57 +02:00
inode.c debugfs: fix debugfs_rename parameter checking 2019-02-15 08:07:38 +01:00
internal.h debugfs: remove extra debugfs_create_file_unsafe() declaration 2016-08-31 15:08:10 +02:00