Skip to content

Commit

Permalink
fix kernel version validation (#152)
Browse files Browse the repository at this point in the history
(cherry picked from commit b996840)
  • Loading branch information
apetruhin committed Dec 9, 2024
1 parent 8d332f3 commit 7faec1c
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 7faec1c

Please sign in to comment.