kern: Correct some typos in source code comments

- s/occured/occurred/
- s/the the/the/

MFC after:	3 days
This commit is contained in:
Gordon Bergling 2022-09-04 13:00:01 +02:00
parent 347b1991b0
commit 49a033d8cf
2 changed files with 2 additions and 2 deletions

View File

@ -764,7 +764,7 @@ sys_abort2(struct thread *td, struct abort2_args *uap)
* kern_abort2()
* Arguments:
* why - user pointer to why
* nargs - number of arguments copied or -1 if an error occured in copying
* nargs - number of arguments copied or -1 if an error occurred in copying
* args - pointer to an array of pointers in kernel format
*/
int

View File

@ -2848,7 +2848,7 @@ prison_free_not_last(struct prison *pr)
/*
* Hold a prison for user visibility, by incrementing pr_uref.
* It is generally an error to hold a prison that isn't already
* user-visible, except through the the jail system calls. It is also
* user-visible, except through the jail system calls. It is also
* an error to hold an invalid prison. A prison record will remain
* alive as long as it has at least one user reference, and will not
* be set to the dying state until the prison mutex and allprison_lock