diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-05-14 01:42:25 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-05-14 01:21:31 +0100 |
commit | a6550e57f9d074511cf420bdb802ab5e56edc3bb (patch) | |
tree | 56010126c6a1660b6fbd97765c73f8808214f98c /drivers/mtd/chips | |
parent | 552d9205186428a1e2a49ed577bcbba9f777af37 (diff) | |
download | linux-a6550e57f9d074511cf420bdb802ab5e56edc3bb.tar.bz2 |
mtd: fix memory leak in block2mtd_setup()
There's a mem leak in drivers/mtd/devices/block2mtd.c::block2mtd_setup()
We can leak 'name' allocated with kmalloc in 'parse_name' if leave via
the 'parse_err' macro since it contains a return but doesn't do any
freeing.
Spotted by coverity checker as bug 615.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/chips')
0 files changed, 0 insertions, 0 deletions