elf: clean up fill_note_info()
authorAmerigo Wang <amwang@redhat.com>
Wed, 23 Sep 2009 22:57:05 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:01 +0000 (07:21 -0700)
commit0cf062d0ffa33d491e2695b0d298ccf9cbb58d3d
treef936d4c0a9ee6c15f76266d5d0b9cbdec3cafc8c
parentd9588725e52650e82989707f8fd2feb67ad2dc8e
elf: clean up fill_note_info()

Introduce a helper function elf_note_info_init() to help fill_note_info()
to do initializations, also fix the potential memory leaks.

[akpm@linux-foundation.org: remove NUM_NOTES]
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/binfmt_elf.c