diff --git a/src/cpu/cpu.c b/src/cpu/cpu.c index 3063f00eb6d7a55297208e2b66b5a0771c76157b..6a808a0c17c780bc30199bd0ad342ed6ec2f259c 100644 --- a/src/cpu/cpu.c +++ b/src/cpu/cpu.c @@ -240,7 +240,7 @@ cpuDecode(virCPUDefPtr cpu, return -1; } - if ((driver = cpuGetSubDriver(cpu->arch)) == NULL) + if ((driver = cpuGetSubDriver(data->arch)) == NULL) return -1; if (driver->decode == NULL) {