• Oleg Nesterov's avatar
    coredump: cleanup "ispipe" code · d5bf4c4f
    Oleg Nesterov authored
    - kill "int dump_count", argv_split(argcp) accepts argcp == NULL.
    
    - move "int dump_count" under " if (ispipe)" branch, fail_dropcount
      can check ispipe.
    
    - move "char **helper_argv" as well, change the code to do argv_free()
      right after call_usermodehelper_fns().
    
    - If call_usermodehelper_fns() fails goto close_fail label instead
      of closing the file by hand.
    Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
    Cc: David Howells <dhowells@redhat.com>
    Cc: Neil Horman <nhorman@tuxdriver.com>
    Cc: Roland McGrath <roland@redhat.com>
    Cc: Andi Kleen <andi@firstfloor.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    d5bf4c4f
exec.c 46.6 KB