HomeFreeBSD

netgraph/ng_checksum: Fix double free error

Description

netgraph/ng_checksum: Fix double free error

m_pullup(9) frees the mbuf(9) chain in the case of an allocation error.
The mbuf chain must not be freed again in this case.

PR: 255874
Submitted by: <lylgood@foxmail.com>
Approved by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30273

Details

Provenance
donnerAuthored on May 15 2021, 9:32 AM
Differential Revision
D30273: netgraph/ng_checksum: Fix double free error
Parents
rG8252fe56a0ed: cam: Fix race condition in dainit()
Branches
Unknown
Tags
Unknown