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)
commitfc2bdefdde89b54d8fcde7bbf7d0adc0ce5cb044
treefbf6f291796ca5f90473d30d5fe0dbd4acbcaa18
parenta6325247f50628c7e53a483807d0ef2c24a7aa90
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