flat: fix uninitialized ptr with shared libs
commit180300a7bdb6aaece7645553a7ad60c16d4201be
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 6 Aug 2009 22:09:34 +0000 (6 15:09 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:58 +0000 (16 14:18 -0700)
treebc8b92740a107fa2af499f48183e07eaf870142f
parent36bd78649e79b5689d263e51eec98e965c43ca3a
flat: fix uninitialized ptr with shared libs

commit 3440625d78711bee41a84cf29c3d8c579b522666 upstream.

The new credentials code broke load_flat_shared_library() as it now uses
an uninitialized cred pointer.

Reported-by: Bernd Schmidt <bernds_cb1@t-online.de>
Tested-by: Bernd Schmidt <bernds_cb1@t-online.de>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/binfmt_flat.c