]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
proc: Fix typo in the comment
authorYan Zhen <yanzhen@vivo.com>
Mon, 9 Sep 2024 06:33:53 +0000 (14:33 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 9 Sep 2024 07:51:16 +0000 (09:51 +0200)
commit698e7d1680544ef114203b0cf656faa0c1216ebc
tree506823d25159c727164068fc14f4e9d879705ed5
parent33d8525dc18f743ec698cb91749132a27cd9c8a8
proc: Fix typo in the comment

The deference here confuses me.

Maybe here want to say that because show_fd_locks() does not dereference
the files pointer, using the stale value of the files pointer is safe.

Correctly spelled comments make it easier for the reader to understand
the code.

replace 'deferences' with 'dereferences' in the comment &
replace 'inialized' with 'initialized' in the comment.

Signed-off-by: Yan Zhen <yanzhen@vivo.com>
Link: https://lore.kernel.org/r/20240909063353.2246419-1-yanzhen@vivo.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/proc/fd.c
fs/proc/kcore.c