[FIX] Wrong check in __get_vma_by_addr() 18/55118/1
authorDmitry Kovalenko <d.kovalenko@samsung.com>
Tue, 22 Dec 2015 04:52:44 +0000 (07:52 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Tue, 22 Dec 2015 04:52:44 +0000 (07:52 +0300)
Change-Id: I8914104426a7328b45aa220c3bce6e6600256894
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
preload/preload_handlers.c

index 0702a79..fa4573c 100644 (file)
@@ -35,7 +35,7 @@ static inline struct vm_area_struct *__get_vma_by_addr(struct task_struct *task,
 {
        struct vm_area_struct *vma = NULL;
 
-       if ((task == NULL) && (task->mm == NULL))
+       if ((task == NULL) || (task->mm == NULL))
                return NULL;
        vma = find_vma_intersection(task->mm, caddr, caddr + 1);