]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
mbuf: Fix an offset calculation in m_apply_extpg_one()
authorMark Johnston <markj@FreeBSD.org>
Wed, 10 Nov 2021 21:57:12 +0000 (16:57 -0500)
committerMark Johnston <markj@FreeBSD.org>
Fri, 24 Mar 2023 23:56:47 +0000 (19:56 -0400)
commitd7ae385428ae8df4b5a39f752b389a9375597748
treea7c227fa105680dcbc274fc038413704063d4439
parent25b824aa0d26a6aa0073c1c5cc4050276bf1e790
mbuf: Fix an offset calculation in m_apply_extpg_one()

We were not including the requested starting offset in the page offset.

Approved by: re (cperciva)
Reviewed by: jhb
Fixes: 3c7a01d773ac ("Extend m_apply() to support unmapped mbufs.")
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32922

(cherry picked from commit ac2b54441742b3148de72e3b29aa0f00d29bb825)
(cherry picked from commit 70421fd527e315bbc4850db2d7e80fc008393bce)
sys/kern/uipc_mbuf.c