net/mlx4_en: Fix mixed PFC and Global pause user control requests
[pandora-kernel.git] / mm / madvise.c
index 23d3a6b..ec8e59c 100644 (file)
@@ -128,6 +128,7 @@ static long madvise_willneed(struct vm_area_struct * vma,
 {
        struct file *file = vma->vm_file;
 
+       *prev = vma;
        if (!file)
                return -EBADF;
 
@@ -136,7 +137,6 @@ static long madvise_willneed(struct vm_area_struct * vma,
                return 0;
        }
 
-       *prev = vma;
        start = ((start - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
        if (end > vma->vm_end)
                end = vma->vm_end;