coredump: factor out put_cred() calls
authorOleg Nesterov <oleg@redhat.com>
Wed, 26 May 2010 21:43:07 +0000 (14:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:45 +0000 (09:12 -0700)
commit5e43aef530ba39206f7923295388f7ec3c5a7d93
treeb29b706cff64eb47cc881a793566e38a511843f1
parentd5bf4c4f5f9dcc90b7e25dbb2f7c4436cf6e7ed0
coredump: factor out put_cred() calls

Given that do_coredump() calls put_cred() on exit path, it is a bit ugly
to do put_cred() + "goto fail" twice, just add the new "fail_creds" label.

Signed-off-by: Oleg 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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c