diff --git a/storagedriver/inmemory/driver.go b/storagedriver/inmemory/driver.go index c2be1913..861e40eb 100644 --- a/storagedriver/inmemory/driver.go +++ b/storagedriver/inmemory/driver.go @@ -194,6 +194,9 @@ func (d *Driver) List(path string) ([]string, error) { return nil, storagedriver.InvalidPathError{Path: path} } + d.mutex.RLock() + defer d.mutex.RUnlock() + normalized := normalize(path) found := d.root.find(normalized)