Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HardenedBSD
HardenedBSD
Commits
bca7c80f
Commit
bca7c80f
authored
Jan 16, 2022
by
HardenedBSD Sync Service
Browse files
Merge branch 'freebsd/current/main' into hardened/current/master
parents
415f4322
e76c0108
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/libc/stdio/fread.c
View file @
bca7c80f
...
...
@@ -129,11 +129,13 @@ __fread(void * __restrict buf, size_t size, size_t count, FILE * __restrict fp)
}
while
(
resid
>
(
r
=
fp
->
_r
))
{
(
void
)
memcpy
((
void
*
)
p
,
(
void
*
)
fp
->
_p
,
(
size_t
)
r
);
fp
->
_p
+=
r
;
/* fp->_r = 0 ... done in __srefill */
p
+=
r
;
resid
-=
r
;
if
(
r
!=
0
)
{
(
void
)
memcpy
((
void
*
)
p
,
(
void
*
)
fp
->
_p
,
(
size_t
)
r
);
fp
->
_p
+=
r
;
/* fp->_r = 0 ... done in __srefill */
p
+=
r
;
resid
-=
r
;
}
if
(
__srefill
(
fp
))
{
/* no more input: return partial result */
return
((
total
-
resid
)
/
size
);
...
...
sys/kern/vfs_bio.c
View file @
bca7c80f
...
...
@@ -3464,7 +3464,7 @@ buf_daemon()
* to avoid endless loops on unlockable buffers.
*/
mtx_lock
(
&
bdlock
);
if
(
!
BIT_EMPTY
(
BUF_DOMAINS
,
&
bdlodirty
))
{
if
(
BIT_EMPTY
(
BUF_DOMAINS
,
&
bdlodirty
))
{
/*
* We reached our low water mark, reset the
* request and sleep until we are needed again.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment