]> 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 03:15:45 +0000 (23:15 -0400)
commit70421fd527e315bbc4850db2d7e80fc008393bce
treeaac223c5123db628b4490806d838aca9e9d50527
parent9cb5b954606ec8a49b6127d2f58f7ee37ca0bb9c
mbuf: Fix an offset calculation in m_apply_extpg_one()

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

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)
sys/kern/uipc_mbuf.c