the VDSO randomization code on i386 fails to release the mmap semaphore
if insert_vm_struct() fails.
[ Made the conditional unlikely. -- Linus ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
        vma->vm_mm = mm;
 
        ret = insert_vm_struct(mm, vma);
-       if (ret)
-               goto free_vma;
+       if (unlikely(ret)) {
+               kmem_cache_free(vm_area_cachep, vma);
+               goto up_fail;
+       }
 
        current->mm->context.vdso = (void *)addr;
        current_thread_info()->sysenter_return =
 up_fail:
        up_write(&mm->mmap_sem);
        return ret;
-
-free_vma:
-       kmem_cache_free(vm_area_cachep, vma);
-       return ret;
 }
 
 const char *arch_vma_name(struct vm_area_struct *vma)