aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/au1550nd.c
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-05-13 19:07:18 -0400
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-13 19:13:30 -0400
commit4f678a58d335291ce9213c049bbe16e6d24487ed (patch)
tree136a3406bf5b0e80b3d45cd4d3c6ca40bb9961fd /drivers/mtd/nand/au1550nd.c
parente0c7d7675331140e5186d2d1a0efce1d3877d379 (diff)
mtd: fix memory leaks in phram_setup
There are two code paths in drivers/mtd/devices/phram.c::phram_setup() that will leak memory. Memory is allocated to the variable 'name' with kmalloc() by the parse_name() function, but if we leave by way of the parse_err() macro, then that memory is never kfree()'d, nor is it ever used with register_device() so it won't be freed later either - leak. Found by the Coverity checker as #593 - simple fix below. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/nand/au1550nd.c')
0 files changed, 0 insertions, 0 deletions