summaryrefslogtreecommitdiffhomepage
path: root/runsc/mitigate/mitigate_conf.go
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2021-03-02 14:08:33 -0800
committergVisor bot <gvisor-bot@google.com>2021-03-02 14:10:51 -0800
commitb8a5420f49a2afd622ec08b5019e1bf537f7da82 (patch)
treeef1e6167acf886322ea42c7056515cec0c24adcd /runsc/mitigate/mitigate_conf.go
parenta317174673562996a98f5a735771955d6651e233 (diff)
Add reverse flag to mitigate.
Add reverse operation to mitigate that just enables all CPUs. PiperOrigin-RevId: 360511215
Diffstat (limited to 'runsc/mitigate/mitigate_conf.go')
-rw-r--r--runsc/mitigate/mitigate_conf.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/mitigate/mitigate_conf.go b/runsc/mitigate/mitigate_conf.go
index 1e74f5891..ee326324b 100644
--- a/runsc/mitigate/mitigate_conf.go
+++ b/runsc/mitigate/mitigate_conf.go
@@ -32,6 +32,6 @@ func (m mitigate) execute(set cpuSet, dryrun bool) error {
return nil
}
-func (m mitigate) vulnerable(other *thread) bool {
+func (m mitigate) vulnerable(other thread) bool {
return other.isVulnerable()
}