CRED: Fix commit_creds() on a process that has no mm
authorDavid Howells <dhowells@redhat.com>
Thu, 8 Jan 2009 11:18:31 +0000 (11:18 +0000)
committerJames Morris <jmorris@namei.org>
Thu, 8 Jan 2009 12:13:56 +0000 (23:13 +1100)
Fix commit_creds()'s handling of a process that has no mm (such as one that is
calling or has called daemonize()).  commit_creds() should check to see if
task->mm is not NULL before calling set_dumpable() on it.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>

No differences found