]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: dma_get_cache_alignment(): Fix off-by-one result
authorOlivier Certner <olce.freebsd@certner.fr>
Fri, 13 Oct 2023 15:13:28 +0000 (17:13 +0200)
committerMark Johnston <markj@FreeBSD.org>
Thu, 2 Nov 2023 13:30:03 +0000 (09:30 -0400)
commit2c7dd66d09a1b92a4698232996cded6e5315b3bd
tree03ad7de76384101134ba771f4acd099c9af24903
parent87090f5e5a7b927a2ab30878435f6dcba0705a1d
linuxkpi: dma_get_cache_alignment(): Fix off-by-one result

Substituting 'uma_align_cache' by the appropriately named accessor
uma_get_cache_align_mask() made apparent that dma_get_cache_alignment()
was off by one, since it was defined to be the mask derived from the
alignment value.

Reviewed by:            markj, bz
MFC after:              2 weeks
Sponsored by:           The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D42264
sys/compat/linuxkpi/common/include/linux/dma-mapping.h