]> git.baikalelectronics.ru Git - kernel.git/commit
debugfs: change parameter check in debugfs_remove() functions
authorArend van Spriel <arend@broadcom.com>
Wed, 23 May 2012 13:13:07 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 23:40:41 +0000 (16:40 -0700)
commit34ddb703c62c76a08dec7abbd55275ce011416e6
treea10dd1c0874517e8cbc3dc0d4300920d42fbeca5
parentc3e213df083439e7397e789fd95ded71e7b3add3
debugfs: change parameter check in debugfs_remove() functions

The dentry parameter in debugfs_remove() and debugfs_remove_recursive()
is checked being a NULL pointer. To make cleanup by callers easier this
check is extended using the IS_ERR_OR_NULL macro instead because the
debugfs_create_... functions can return a ERR_PTR() value.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/debugfs/inode.c