diff options
| author | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-07-06 19:09:15 +0000 |
|---|---|---|
| committer | Ahmad Khalifa <vexeduxr@FreeBSD.org> | 2025-07-06 19:26:07 +0000 |
| commit | efe5907279e1aa1781fc4d5260204888cd235cc2 (patch) | |
| tree | 5dd8d39118c3b484e5d141441bbf8cf0419be9d3 /sys/dev/netmap/netmap.c | |
| parent | ac64cd191c3f49efe900b8e90657f51578503265 (diff) | |
amd64: fix physmap entry addition logic
Since physmap_idx points to the next slot, we should make sure both 'i'
and 'insert_idx' are less than physmap_idx, but never equal to it.
Also allow physmap_idx to reach PHYS_AVAIL_ENTRIES so the last slot can
be populated.
Reviewed by: kib, markj
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D51173
Diffstat (limited to 'sys/dev/netmap/netmap.c')
0 files changed, 0 insertions, 0 deletions
