diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-09-01 18:52:38 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-09-01 18:52:38 +0000 |
commit | a0c7914b1771df97bd2dab7a20f9f169f6eac0eb (patch) | |
tree | d13d3f3b65fc2256d355174fde8ea6ace24f8f83 | |
parent | 31a6e4746a1e59e892936229daf09c0562255158 (diff) | |
parent | 927ea16dd384f675a2ce1456be457a371109c488 (diff) |
Merge release-20210823.0-37-g927ea16dd (automated)
-rw-r--r-- | pkg/sentry/socket/unix/transport/queue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/unix/transport/queue.go b/pkg/sentry/socket/unix/transport/queue.go index e4de44498..a9cedcf5f 100644 --- a/pkg/sentry/socket/unix/transport/queue.go +++ b/pkg/sentry/socket/unix/transport/queue.go @@ -133,7 +133,7 @@ func (q *queue) Enqueue(ctx context.Context, data [][]byte, c ControlMessages, f free := q.limit - q.used if l > free && truncate { - if free == 0 { + if free <= 0 { // Message can't fit right now. q.mu.Unlock() return 0, false, syserr.ErrWouldBlock |