diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-12-21 18:33:04 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-12-21 18:33:04 +0000 |
commit | 8487443792ce67fce21ae32470d6d8c217e93368 (patch) | |
tree | 66d13e0f0be3aa0faf037a08fe95ba8ee5f1e7a7 | |
parent | a20c00c60e1c022f77a7bc638f29d3d6d9456953 (diff) | |
download | src-8487443792ce67fce21ae32470d6d8c217e93368.tar.gz src-8487443792ce67fce21ae32470d6d8c217e93368.zip |
bhyve: Don't access vcpumap[vcpu] directly in parse_cpuset().
Reviewed by: corvink, markj
Differential Revision: https://reviews.freebsd.org/D37645
-rw-r--r-- | usr.sbin/bhyve/bhyverun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 31cb7c2ceaf3..c110fecf31b0 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -441,12 +441,12 @@ parse_cpuset(int vcpu, const char *list, cpuset_t *set) errx(4, "Invalid hostcpu range %d-%d", start, pcpu); while (start < pcpu) { - CPU_SET(start, vcpumap[vcpu]); + CPU_SET(start, set); start++; } start = -1; } - CPU_SET(pcpu, vcpumap[vcpu]); + CPU_SET(pcpu, set); break; case '-': if (start >= 0) |