mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Add the missing RLock
This commit is contained in:
@@ -65,6 +65,8 @@ func (pdev *podDevices) size() int {
|
||||
}
|
||||
|
||||
func (pdev *podDevices) hasPod(podUID string) bool {
|
||||
pdev.RLock()
|
||||
defer pdev.RUnlock()
|
||||
_, podExists := pdev.devs[podUID]
|
||||
return podExists
|
||||
}
|
||||
|
Reference in New Issue
Block a user