summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/fsutil/inode.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-02 18:10:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-02 18:10:17 +0000
commit9a57f1ddd5f2dbf0a3df0417ff78d14ebd9fc8aa (patch)
treebc42f0d6d75570ce78ffb8207d4418cef2a9f49b /pkg/sentry/fs/fsutil/inode.go
parent358268b7d747bb80f468a795679370c4fb33d190 (diff)
parent62bd3ca8a37543c060292ca86669e537b9ebf36d (diff)
Merge release-20200219.0-76-g62bd3ca (automated)
Diffstat (limited to 'pkg/sentry/fs/fsutil/inode.go')
-rw-r--r--pkg/sentry/fs/fsutil/inode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/fsutil/inode.go b/pkg/sentry/fs/fsutil/inode.go
index daecc4ffe..1922ff08c 100644
--- a/pkg/sentry/fs/fsutil/inode.go
+++ b/pkg/sentry/fs/fsutil/inode.go
@@ -259,8 +259,8 @@ func (i *InodeSimpleExtendedAttributes) ListXattr(context.Context, *fs.Inode, ui
// RemoveXattr implements fs.InodeOperations.RemoveXattr.
func (i *InodeSimpleExtendedAttributes) RemoveXattr(_ context.Context, _ *fs.Inode, name string) error {
- i.mu.RLock()
- defer i.mu.RUnlock()
+ i.mu.Lock()
+ defer i.mu.Unlock()
if _, ok := i.xattrs[name]; ok {
delete(i.xattrs, name)
return nil