fix possible null ptr deref in kallsyms_lookup