Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30956
b: refs/heads/master
c: 79bc79b
h: refs/heads/master
v: v3
  • Loading branch information
pageexec@freemail.hu authored and Linus Torvalds committed Jun 28, 2006
1 parent f24140f commit e019a50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a39727f212426b9d5f9267b3318a2afaf9922d3b
refs/heads/master: 79bc79b07c9c6f8ae9290704e9e503a9327fcbb2
10 changes: 4 additions & 6 deletions trunk/arch/i386/kernel/sysenter.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack)
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 =
Expand All @@ -158,10 +160,6 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack)
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)
Expand Down

0 comments on commit e019a50

Please sign in to comment.