Skip to content

Commit

Permalink
Merge pull request #460 from q384566678/devices-validate-fix
Browse files Browse the repository at this point in the history
validate: modify the condition of the deviceValid
  • Loading branch information
liangchenye authored Sep 22, 2017
2 parents bd16d0d + 24a2327 commit 0a52ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ func deviceValid(d rspec.LinuxDevice) bool {
return false
}
case "p":
if d.Major > 0 || d.Minor > 0 {
if d.Major != 0 || d.Minor != 0 {
return false
}
default:
Expand Down

0 comments on commit 0a52ac0

Please sign in to comment.