Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tomoyo: Fix typo in comments.

Spotted by developers and codespell program.

Co-developed-by: Xiaoming Ni <nixiaoming@huawei.com>
Signed-off-by: Xiaoming Ni <nixiaoming@huawei.com>
Co-developed-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>

+7 -7
+1 -1
security/tomoyo/audit.c
··· 311 311 /* Lock for "struct list_head tomoyo_log". */ 312 312 static DEFINE_SPINLOCK(tomoyo_log_lock); 313 313 314 - /* Length of "stuct list_head tomoyo_log". */ 314 + /* Length of "struct list_head tomoyo_log". */ 315 315 static unsigned int tomoyo_log_count; 316 316 317 317 /**
+3 -3
security/tomoyo/common.c
··· 635 635 if (strstr(value, tomoyo_mode[mode])) 636 636 /* 637 637 * Update lower 3 bits in order to distinguish 638 - * 'config' from 'TOMOYO_CONFIG_USE_DEAFULT'. 638 + * 'config' from 'TOMOYO_CONFIG_USE_DEFAULT'. 639 639 */ 640 640 config = (config & ~7) | mode; 641 641 if (config != TOMOYO_CONFIG_USE_DEFAULT) { ··· 2574 2574 * tomoyo_read_control - read() for /sys/kernel/security/tomoyo/ interface. 2575 2575 * 2576 2576 * @head: Pointer to "struct tomoyo_io_buffer". 2577 - * @buffer: Poiner to buffer to write to. 2577 + * @buffer: Pointer to buffer to write to. 2578 2578 * @buffer_len: Size of @buffer. 2579 2579 * 2580 2580 * Returns bytes read on success, negative value otherwise. ··· 2608 2608 /** 2609 2609 * tomoyo_parse_policy - Parse a policy line. 2610 2610 * 2611 - * @head: Poiter to "struct tomoyo_io_buffer". 2611 + * @head: Pointer to "struct tomoyo_io_buffer". 2612 2612 * @line: Line to parse. 2613 2613 * 2614 2614 * Returns 0 on success, negative value otherwise.
+1 -1
security/tomoyo/condition.c
··· 98 98 * @argc: Length of @argc. 99 99 * @argv: Pointer to "struct tomoyo_argv". 100 100 * @envc: Length of @envp. 101 - * @envp: Poiner to "struct tomoyo_envp". 101 + * @envp: Pointer to "struct tomoyo_envp". 102 102 * 103 103 * Returns true on success, false otherwise. 104 104 */
+1 -1
security/tomoyo/domain.c
··· 889 889 * 890 890 * @bprm: Pointer to "struct linux_binprm". 891 891 * @pos: Location to dump. 892 - * @dump: Poiner to "struct tomoyo_page_dump". 892 + * @dump: Pointer to "struct tomoyo_page_dump". 893 893 * 894 894 * Returns true on success, false otherwise. 895 895 */
+1 -1
security/tomoyo/gc.c
··· 463 463 return; 464 464 reinject: 465 465 /* 466 - * We can safely reinject this element here bacause 466 + * We can safely reinject this element here because 467 467 * (1) Appending list elements and removing list elements are protected 468 468 * by tomoyo_policy_lock mutex. 469 469 * (2) Only this function removes list elements and this function is