]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vmm: Fix wrong assert in ivhd_dev_add_entry
authorKa Ho Ng <khng@FreeBSD.org>
Thu, 12 Aug 2021 07:54:40 +0000 (15:54 +0800)
committerKa Ho Ng <khng@FreeBSD.org>
Thu, 12 Aug 2021 07:56:16 +0000 (15:56 +0800)
commit179bc5729dd72e0f4252c0dce72454c76782f935
tree667edc9d6bbf8f3512398e5688fd171c55e487ee
parent5e4279a8f35aa4b46debf728d3f743d64f15aaf8
vmm: Fix wrong assert in ivhd_dev_add_entry

The correct condition is to check the number of ivhd entries fit into
the array.

Reported by: bz
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D31514
sys/amd64/vmm/amd/ivrs_drv.c