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,
updateSpec: setNvidiaGPUs,
}
for c := range capset {
nvidiaDriver.capset[c] = struct{}{}
for c := range allNvidiaCaps {
nvidiaDriver.capset[string(c)] = struct{}{}
}
registerDeviceDriver("nvidia", nvidiaDriver)
}

View File

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