[Bug 275002] if_wg: Missing failure check for m_copyback()

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 12 Nov 2023 04:13:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275002

--- Comment #3 from Aaron LI <aly@aaronly.me> ---
(In reply to Kristof Provost from comment #1)

> I don't think that's an issue here because the mbuf is known to be of
> length 'len' before it's passed to m_copyout(). The allocation is done
> just before the m_copyback().

Oh, that's true. I forget that implication set by m_get2() just before
m_copyback().

As kevans suggested, a KASSERT() after m_copyback() would make it clear
and remove this confusion.

-- 
You are receiving this mail because:
You are the assignee for the bug.