fix: kernel_dev and kernel_type may be used uninitialized in this function
build fix for linaro 4.9.1