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
Differential Revision: https://reviews.freebsd.org/D30273

(cherry picked from commit 687e510e5ce32fddf46a9dc1d517ccc8a8e25581)

Details

Provenance
donnerAuthored on May 15 2021, 9:32 AM
Differential Revision
D30273: netgraph/ng_checksum: Fix double free error
Parents
rG3dc9f92a0d3d: loader: gfx_fb_drawrect should use GfxFbBltVideoFill
Branches
Unknown
Tags
Unknown