mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-20 02:04:15 +01:00
fix(usbgadget): add lock for logWithSupression (#653)
This commit is contained in:
@@ -81,6 +81,7 @@ type UsbGadget struct {
|
||||
log *zerolog.Logger
|
||||
|
||||
logSuppressionCounter map[string]int
|
||||
logSuppressionLock sync.Mutex
|
||||
}
|
||||
|
||||
const configFSPath = "/sys/kernel/config"
|
||||
|
||||
Reference in New Issue
Block a user