summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel/semaphore
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-05-25 21:08:22 +0000
committergVisor bot <gvisor-bot@google.com>2021-05-25 21:08:22 +0000
commit46f41093f8e04bdbf718a3d7e7eaf81bef9a505f (patch)
treeadeff8ce6698938dfdd12b89e352d4b8bb2c0aa2 /pkg/sentry/kernel/semaphore
parent7f80ac008969a51d400207c1790f056d8fc4b4fc (diff)
parentf298d732170fb52189d9a4fe571caa8174227639 (diff)
Merge release-20210518.0-41-gf298d7321 (automated)
Diffstat (limited to 'pkg/sentry/kernel/semaphore')
-rw-r--r--pkg/sentry/kernel/semaphore/semaphore.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/kernel/semaphore/semaphore.go b/pkg/sentry/kernel/semaphore/semaphore.go
index 3c5bd8ff7..1d9edf118 100644
--- a/pkg/sentry/kernel/semaphore/semaphore.go
+++ b/pkg/sentry/kernel/semaphore/semaphore.go
@@ -35,10 +35,10 @@ const (
// Maximum number of semaphore sets.
setsMax = linux.SEMMNI
- // Maximum number of semaphroes in a semaphore set.
+ // Maximum number of semaphores in a semaphore set.
semsMax = linux.SEMMSL
- // Maximum number of semaphores in all semaphroe sets.
+ // Maximum number of semaphores in all semaphore sets.
semsTotalMax = linux.SEMMNS
)
@@ -220,7 +220,7 @@ func (r *Registry) HighestIndex() int32 {
defer r.mu.Unlock()
// By default, highest used index is 0 even though
- // there is no semaphroe set.
+ // there is no semaphore set.
var highestIndex int32
for index := range r.indexes {
if index > highestIndex {