]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Plug PMB alloc memory leak
authorMatt Fleming <matt@console-pimps.org>
Tue, 6 Oct 2009 21:22:22 +0000 (21:22 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 9 Oct 2009 02:24:09 +0000 (11:24 +0900)
commit8ce0cdb4b0c1597f27a6d197cfd34f188279ca86
treefbf6f291796ca5f90473d30d5fe0dbd4acbcaa18
parent87be823882609f01398cc4e2a443cb85ce67c5be
sh: Plug PMB alloc memory leak

If we fail to allocate a PMB entry in pmb_remap() we must remember to
clear and free any PMB entries that we may have previously allocated,
e.g. if we were allocating a multiple entry mapping.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/mm/pmb.c