1
0

fix: return after found

This commit is contained in:
dump_stack() 2023-05-15 18:17:31 +00:00
parent 4ea7fbfbf9
commit 8949b53ccc
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -145,6 +145,7 @@ func GetCachedKernel(deb string) (dk DebianKernel, err error) {
if deb == tmpdk.Image.Deb.Name { if deb == tmpdk.Image.Deb.Name {
dk = tmpdk dk = tmpdk
return
} }
for _, h := range tmpdk.Headers { for _, h := range tmpdk.Headers {