HomeFreeBSD

vmm: Fix wrong assert in ivhd_dev_add_entry

Description

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
Differential Revision: https://reviews.freebsd.org/D31514

(cherry picked from commit 179bc5729dd72e0f4252c0dce72454c76782f935)

Details

Provenance
khngAuthored on Aug 12 2021, 7:54 AM
Differential Revision
D31514: vmm: Fix wrong assert in ivhd_dev_add_entry
Parents
rGdb877a06ec41: vmm: Fix AMD-vi using wrong rid range
Branches
Unknown
Tags
Unknown