mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add nil-check for parent mount in umount(2) while handling mount propagation.
PiperOrigin-RevId: 487585583
This commit is contained in:
@@ -654,7 +654,7 @@ func (vfs *VirtualFilesystem) UmountAt(ctx context.Context, creds *auth.Credenti
|
||||
|
||||
umountTree := []*Mount{vd.mount}
|
||||
parent, mountpoint := vd.mount.parent(), vd.mount.point()
|
||||
if parent.propType == Shared {
|
||||
if parent != nil && parent.propType == Shared {
|
||||
for peer := parent.sharedList.Front(); peer != nil; peer = peer.sharedEntry.Next() {
|
||||
if peer == parent {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user