Initialize maps during nvproxy restore.

The nvproxy restore code was not properly initializing the objsFreeSet map.
This caused a panic when this map was used after restore.

Fixes 1e1334e88f ("nvproxy: track driver object dependencies")

PiperOrigin-RevId: 627766876
This commit is contained in:
Ayush Ranjan
2024-04-24 10:12:30 -07:00
committed by gVisor bot
parent 02bd611e7c
commit 2629912d15
@@ -34,4 +34,5 @@ func (n *nvproxy) afterLoad(goContext.Context) {
panic(fmt.Sprintf("driver version %q not found in abis map", n.version))
}
n.abi = abiCons.cons()
n.objsFreeSet = make(map[*object]struct{})
}