• Greg Kroah-Hartman's avatar
    debugfs: fix debugfs_rename parameter checking · c87bdb9e
    Greg Kroah-Hartman authored
    commit d88c93f0 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    c87bdb9e
inode.c 23.8 KB