mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
kvm: handle errors of updateSystemValues
PiperOrigin-RevId: 441390130
This commit is contained in:
@@ -219,7 +219,9 @@ func (c *cpuidEntries) Set(in cpuid.In, out cpuid.Out) {
|
||||
|
||||
// updateGlobalOnce does global initialization. It has to be called only once.
|
||||
func updateGlobalOnce(fd int) error {
|
||||
err := updateSystemValues(int(fd))
|
||||
if err := updateSystemValues(int(fd)); err != nil {
|
||||
return err
|
||||
}
|
||||
fs := cpuid.FeatureSet{
|
||||
Function: &cpuidSupported,
|
||||
}
|
||||
@@ -238,5 +240,5 @@ func updateGlobalOnce(fd int) error {
|
||||
Function: s,
|
||||
})
|
||||
physicalInit()
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user