coredump: plug a memory leak situation on dump_seek()
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Wed, 10 Mar 2010 23:21:22 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 12 Mar 2010 23:52:32 +0000 (15:52 -0800)
commit6e3e37a5a7c91045497553bcbd6a5faea98b21b3
tree10aabb16410477cb65057e96a3bff804423675e2
parent5cacdb4add1b1e50fe75edc50ebbb7bddd9cf5e7
coredump: plug a memory leak situation on dump_seek()

After having started writing the coredump, if filesystem reports an error
anytime while writing part of the core file, we would leak a memory page
when bailing out.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Roland McGrath <roland@redhat.com>
Cc: WANG Cong <amwang@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/coredump.h