From: Mathias Krause Date: Fri, 9 Aug 2024 13:50:35 +0000 (+0200) Subject: file: fix typo in take_fd() comment X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=86509e38a80da34d7800985fa2be183475242c8c;p=users%2Fdwmw2%2Flinux.git file: fix typo in take_fd() comment The explanatory comment above take_fd() contains a typo, fix that to not confuse readers. Signed-off-by: Mathias Krause Link: https://lore.kernel.org/r/20240809135035.748109-1-minipli@grsecurity.net Signed-off-by: Christian Brauner --- diff --git a/include/linux/file.h b/include/linux/file.h index 237931f20739f..59b146a14dcad 100644 --- a/include/linux/file.h +++ b/include/linux/file.h @@ -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);