diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-02-09 09:40:03 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-09 09:40:03 +0000 |
commit | 7dc93f4645e36b0faf2a56662740892085ef9afb (patch) | |
tree | b7a7a50c96d7c29dc8232d4e125a15c21b231a14 /pkg/sentry/fsimpl/tmpfs | |
parent | b55c5c8d97cac508f132306d7ee24c47705cc2db (diff) | |
parent | d6dbe6e5ca5445dac278d3b6654af8d13379878a (diff) |
Merge release-20210201.0-63-gd6dbe6e5c (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/tmpfs')
-rw-r--r-- | pkg/sentry/fsimpl/tmpfs/regular_file.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/tmpfs/regular_file.go b/pkg/sentry/fsimpl/tmpfs/regular_file.go index 6255a7c84..82a743ff3 100644 --- a/pkg/sentry/fsimpl/tmpfs/regular_file.go +++ b/pkg/sentry/fsimpl/tmpfs/regular_file.go @@ -656,6 +656,9 @@ func (rw *regularFileReadWriter) WriteFromBlocks(srcs safemem.BlockSeq) (uint64, // Write to that memory as usual. seg, gap = rw.file.data.Insert(gap, gapMR, fr.Start), fsutil.FileRangeGapIterator{} + + default: + panic("unreachable") } } exitLoop: |