1
0

Must return after found one supported kernel

This commit is contained in:
dump_stack() 2018-10-07 08:44:20 +00:00
parent 46122397b5
commit e1a3de5d05

View File

@ -75,6 +75,10 @@ func (ka artifact) checkSupport(ki kernelInfo, km kernelMask) (
func (ka artifact) Supported(ki kernelInfo) (supported bool, err error) { func (ka artifact) Supported(ki kernelInfo) (supported bool, err error) {
for _, km := range ka.SupportedKernels { for _, km := range ka.SupportedKernels {
supported, err = ka.checkSupport(ki, km) supported, err = ka.checkSupport(ki, km)
if supported {
break
}
} }
return return
} }