diff options
author | Benjamin Robin <benjarobin@users.noreply.github.com> | 2017-02-17 08:45:30 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-17 17:58:36 +0200 |
commit | f9ddcf23d54a8c9673163e5cca12fa8ab4814f74 (patch) | |
tree | 1fcbaeaed38ab832532364eb628836b1f0d9bce5 /src/basic/virt.c | |
parent | ad9e7bc1ae797e9ca4cc02916ddc0a2dbba85173 (diff) |
virt: Update cache if the detected vm is virtualbox (#5364)
Diffstat (limited to 'src/basic/virt.c')
-rw-r--r-- | src/basic/virt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/virt.c b/src/basic/virt.c index 66ce7ecfe..276df8352 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -328,8 +328,10 @@ int detect_vm(void) { * -> Third try to detect from dmi. */ dmi = detect_vm_dmi(); - if (dmi == VIRTUALIZATION_ORACLE) - return dmi; + if (dmi == VIRTUALIZATION_ORACLE) { + r = dmi; + goto finish; + } r = detect_vm_cpuid(); if (r < 0) |