Skip to content

Commit 0a52ac0

Browse files
authored
Merge pull request #460 from q384566678/devices-validate-fix
validate: modify the condition of the deviceValid
2 parents bd16d0d + 24a2327 commit 0a52ac0

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
@@ -979,7 +979,7 @@ func deviceValid(d rspec.LinuxDevice) bool {
979979
return false
980980
}
981981
case "p":
982-
if d.Major > 0 || d.Minor > 0 {
982+
if d.Major != 0 || d.Minor != 0 {
983983
return false
984984
}
985985
default:

0 commit comments

Comments
 (0)