1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

daemon: fix bug in nvidia device registration

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2019-03-25 22:40:19 +00:00 committed by Renaud Gaubert
parent bd3d46a9e5
commit 739adb46e4
2 changed files with 3 additions and 2 deletions

View file

@ -39,8 +39,8 @@ func init() {
capset: capset, capset: capset,
updateSpec: setNvidiaGPUs, updateSpec: setNvidiaGPUs,
} }
for c := range capset { for c := range allNvidiaCaps {
nvidiaDriver.capset[c] = struct{}{} nvidiaDriver.capset[string(c)] = struct{}{}
} }
registerDeviceDriver("nvidia", nvidiaDriver) registerDeviceDriver("nvidia", nvidiaDriver)
} }

View file

@ -19,5 +19,6 @@ anyof:
} }
return andList return andList
} }
// match anything
return nil return nil
} }