Skip to content

Commit d300246

Browse files
Qi Zhenggregkh
authored andcommitted
debugfs: update comment of debugfs_rename()
Since commit ff9fb72 ("debugfs: return error values, not NULL") changed return value of debugfs_rename() in error cases from %NULL to %ERR_PTR(-ERROR), the comment of debugfs_rename should also be updated so as not to mislead readers. Signed-off-by: Qi Zheng <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 007ed79 commit d300246

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/debugfs/inode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,8 +802,8 @@ EXPORT_SYMBOL_GPL(debugfs_lookup_and_remove);
802802
* exist for rename to succeed.
803803
*
804804
* This function will return a pointer to old_dentry (which is updated to
805-
* reflect renaming) if it succeeds. If an error occurs, %NULL will be
806-
* returned.
805+
* reflect renaming) if it succeeds. If an error occurs, %ERR_PTR(-ERROR)
806+
* will be returned.
807807
*
808808
* If debugfs is not enabled in the kernel, the value -%ENODEV will be
809809
* returned.

0 commit comments

Comments
 (0)