]> 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>
Wed, 10 Nov 2021 21:57:12 +0000 (16:57 -0500)
commitac2b54441742b3148de72e3b29aa0f00d29bb825
treefac127b1b0456e6575fe98ab37a309386f3c45f3
parent5504d8394289853e8c065e88a83fb464cb50d934
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
sys/kern/uipc_mbuf.c