don't change the end marker in sg_set_page()
authorjsg <jsg@openbsd.org>
Wed, 2 Aug 2023 11:03:17 +0000 (11:03 +0000)
committerjsg <jsg@openbsd.org>
Wed, 2 Aug 2023 11:03:17 +0000 (11:03 +0000)
commit40d57955f2f1a3a65c42ea374f86c74cf879d76d
treefcce58e6f69c02d8ccedfb2a82f87dea493d9e0a
parentd81e88ec08d290843813b8d3339a16201c5de799
don't change the end marker in sg_set_page()

Prompted by bad memory accesses seen with page flipping on alder lake
and raptor lake.  Starting xfce reliably caused problems.

reported by kn@ and yasuoka@, both confirmed this fixes it
ok kn@ kettenis@
sys/dev/pci/drm/include/linux/scatterlist.h