mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix panic in lisafs
When mount fails, `filesystem.Release()` attempts to dereference a nil `filesystem.clientLisa`. PiperOrigin-RevId: 482027422
This commit is contained in:
committed by
gVisor bot
parent
cf1320ce50
commit
c6c38d5c4b
@@ -743,9 +743,13 @@ func (fs *filesystem) Release(ctx context.Context) {
|
||||
if !fs.iopts.LeakConnection {
|
||||
// Close the connection to the server. This implicitly clunks all fids.
|
||||
if fs.opts.lisaEnabled {
|
||||
fs.clientLisa.Close()
|
||||
if fs.clientLisa != nil {
|
||||
fs.clientLisa.Close()
|
||||
}
|
||||
} else {
|
||||
fs.client.Close()
|
||||
if fs.client != nil {
|
||||
fs.client.Close()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user