diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-12-08 01:07:56 -0500 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-12-08 01:07:56 -0500 |
commit | bef986502fa398b1785a3979b1aa17cd902d3527 (patch) | |
tree | b59c1afe7b1dfcc001b86e54863f550d7ddc8c34 /fs/exec.c | |
parent | 4bdbd2807deeccc0793d57fb5120d7a53f2c0b3c (diff) | |
parent | c99767974ebd2a719d849fdeaaa1674456f5283f (diff) |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/usb/input/hid.h
Diffstat (limited to 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -404,7 +404,7 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
404 | bprm->loader += stack_base; | 404 | bprm->loader += stack_base; |
405 | bprm->exec += stack_base; | 405 | bprm->exec += stack_base; |
406 | 406 | ||
407 | mpnt = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 407 | mpnt = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
408 | if (!mpnt) | 408 | if (!mpnt) |
409 | return -ENOMEM; | 409 | return -ENOMEM; |
410 | 410 | ||
@@ -1515,7 +1515,8 @@ int do_coredump(long signr, int exit_code, struct pt_regs * regs) | |||
1515 | ispipe = 1; | 1515 | ispipe = 1; |
1516 | } else | 1516 | } else |
1517 | file = filp_open(corename, | 1517 | file = filp_open(corename, |
1518 | O_CREAT | 2 | O_NOFOLLOW | O_LARGEFILE, 0600); | 1518 | O_CREAT | 2 | O_NOFOLLOW | O_LARGEFILE | flag, |
1519 | 0600); | ||
1519 | if (IS_ERR(file)) | 1520 | if (IS_ERR(file)) |
1520 | goto fail_unlock; | 1521 | goto fail_unlock; |
1521 | inode = file->f_dentry->d_inode; | 1522 | inode = file->f_dentry->d_inode; |