Skip to content

Commit

Permalink
Merge pull request #153 from coroot/kernel_version_fix
Browse files Browse the repository at this point in the history
fix kernel version validation
  • Loading branch information
apetruhin authored Dec 9, 2024
2 parents 42a8e5c + b996840 commit 29f5d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/kernel.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var (

func SetKernelVersion(version string) error {
v, err := VersionFromString(version)
if err != nil || v.Minor == 0 {
if err != nil || v.Major == 0 {
return fmt.Errorf("invalid kernel version: %s", version)
}
kernelVersion = v
Expand Down

0 comments on commit 29f5d2c

Please sign in to comment.