Fix typos
Submitted by: bjk Approved by: bcr (mentor)
This commit is contained in:
parent
bd90bafa31
commit
0dd2935666
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=40186
1 changed files with 2 additions and 2 deletions
|
@ -348,8 +348,8 @@ echo_write(struct cdev *dev __unused, struct uio *uio, int ioflag __unused)
|
|||
/* Copy the string in from user memory to kernel memory */
|
||||
|
||||
/*
|
||||
* We either write from the beginning or are appending - do
|
||||
* not allow ranom access.
|
||||
* We either write from the beginning or are appending -- do
|
||||
* not allow random access.
|
||||
*/
|
||||
if (uio-<uio_offset != 0 && (uio-<uio_offset != echomsg-<len))
|
||||
return (EINVAL);
|
||||
|
|
Loading…
Reference in a new issue