git: mbuf(9): Fix a serious bug: remove extra pointer to caddr_t/c_caddr_t
Aaron LI
aly at crater.dragonflybsd.org
Tue Jan 2 20:02:17 PST 2024
commit 2a074a6d9d1b3b4e94d6ef83765126c76d941f29
Author: Aaron LI <aly at aaronly.me>
Date: Wed Jan 3 11:51:57 2024 +0800
mbuf(9): Fix a serious bug: remove extra pointer to caddr_t/c_caddr_t
The 'caddr_t' and 'c_caddr_t' types are already *pointer* to 'char' and
'const char', respectively, so no need and can't add one more pointer to
them.
This bug was my mistake in commit
ef09a3ed3479755d29ff48a4e81912847e96139a.
It broke the pointer arithmetic and caused some weird issues (e.g.,
system panic, SSH connection lost when transferring lots of data).
Summary of changes:
sys/kern/uipc_mbuf.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a074a6d9d1b3b4e94d6ef83765126c76d941f29
--
DragonFly BSD source repository
More information about the Commits
mailing list