From: Vyacheslav Cherkashin Date: Wed, 24 Jun 2015 11:52:53 +0000 (+0300) Subject: [FIX] check ld_info pointer on NULL X-Git-Tag: submit/tizen/20151123.110932~58 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=531f07782854c215db2d0ab4b6bdfd718db0010e;p=kernel%2Fswap-modules.git [FIX] check ld_info pointer on NULL Change-Id: Iaa79730bd50af2fe29c2aa702d2027afab1eb6fb Signed-off-by: Vyacheslav Cherkashin --- diff --git a/preload/preload_module.c b/preload/preload_module.c index 02b0db2..c9a3edc 100644 --- a/preload/preload_module.c +++ b/preload/preload_module.c @@ -242,6 +242,11 @@ static struct vm_area_struct *__get_linker_vma(struct task_struct *task) struct bin_info *ld_info; ld_info = preload_storage_get_linker_info(); + if (ld_info == NULL) { + printk(PRELOAD_PREFIX "Cannot get linker info [%u %u %s]!\n", + task->tgid, task->pid, task->comm); + return NULL; + } for (vma = task->mm->mmap; vma; vma = vma->vm_next) { if (vma->vm_file && vma->vm_flags & VM_EXEC