tcp: enforce tcp_min_snd_mss in tcp_mtu_probing()
[pandora-kernel.git] / mm / madvise.c
index 11c0225..42f4fd5 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;