linaro 4.9 fix

Change-Id: I05b20dc2c8da7ca175d6d372d3cef2fe951faed0
fix: kernel_dev and kernel_type may be used uninitialized in this function