CRED: Fix memory leak in error handling
commit570b8fb505896e007fd3bb07573ba6640e51851d
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Mar 2010 23:04:00 +0000 (30 00:04 +0100)
committerJames Morris <jmorris@namei.org>
Tue, 30 Mar 2010 06:15:38 +0000 (30 17:15 +1100)
treefd36f685aa2028628605733708bbf7d1af62f3ec
parent9623e5a23724d09283c238960946ec6f65733afe
CRED: Fix memory leak in error handling

Fix a memory leak on an OOM condition in prepare_usermodehelper_creds().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
kernel/cred.c