Skip to content

Commit 24a2327

Browse files
author
zhouhao
committed
validate: modify the condition of the deviceValid
Signed-off-by: zhouhao <[email protected]>
1 parent 06bd267 commit 24a2327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: validate/validate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ func deviceValid(d rspec.LinuxDevice) bool {
920920
return false
921921
}
922922
case "p":
923-
if d.Major > 0 || d.Minor > 0 {
923+
if d.Major != 0 || d.Minor != 0 {
924924
return false
925925
}
926926
default:

0 commit comments

Comments
 (0)