Skip to content

Commit

Permalink
file: fix typo in take_fd() comment
Browse files Browse the repository at this point in the history
The explanatory comment above take_fd() contains a typo, fix that to not
confuse readers.

Signed-off-by: Mathias Krause <minipli@grsecurity.net>
Link: https://lore.kernel.org/r/20240809135035.748109-1-minipli@grsecurity.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
  • Loading branch information
minipli-oss authored and brauner committed Aug 12, 2024
1 parent 3b5bbe7 commit 86509e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ DEFINE_CLASS(get_unused_fd, int, if (_T >= 0) put_unused_fd(_T),
*
* f = dentry_open(&path, O_RDONLY, current_cred());
* if (IS_ERR(f))
* return PTR_ERR(fd);
* return PTR_ERR(f);
*
* fd_install(fd, f);
* return take_fd(fd);
Expand Down

0 comments on commit 86509e3

Please sign in to comment.