HomeFreeBSD

ng_tty: copy to the correct mbuf

Description

ng_tty: copy to the correct mbuf

memcpy should copy to the current mbuf, otherwise we're copying to the
first mbuf in the chain over and over.

Reported by: kevans
Reviewed by: glebius
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D52713

(cherry picked from commit e05521121f05a1b1e0d7c7b5fbe79f83fc303cd0)

Details

Provenance
vexeduxrAuthored on Sep 25 2025, 4:54 PM
Reviewer
glebius
Differential Revision
D52713: ng_tty: copy to the correct mbuf
Parents
rG2dc10f2a49af: ng_tty: don't increment m_data
Branches
Unknown
Tags
Unknown