]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit797ce8390cae4549a3fc81d33daf0d949d40f88a
treef936d4c0a9ee6c15f76266d5d0b9cbdec3cafc8c
parent24aa536fd48bae28ed74cb4b8d31d5ac4bb1407f
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