diff --git a/libcontainer/intelrdt/intelrdt.go b/libcontainer/intelrdt/intelrdt.go index ebb68f94..487c630a 100644 --- a/libcontainer/intelrdt/intelrdt.go +++ b/libcontainer/intelrdt/intelrdt.go @@ -443,6 +443,11 @@ func (m *IntelRdtManager) GetPath() string { // Returns statistics for Intel RDT func (m *IntelRdtManager) GetStats() (*Stats, error) { + // If intelRdt is not specified in config + if m.Config.IntelRdt == nil { + return nil, nil + } + m.mu.Lock() defer m.mu.Unlock() stats := NewStats()