aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <[email protected]>2009-02-11 13:12:17 -0800
committerDavid Woodhouse <[email protected]>2009-02-14 08:06:20 +0000
commite480814f138cd5d78a8efe397756ba6b6518fdb6 (patch)
tree92b2b8eabd2133ba65f814a945fa8245f34da7eb /net/lapb/lapb_in.c
parent3afd522de8d8ec446efe957b86e4f63e3dd8ce9d (diff)
[MTD] [MAPS] physmap: fix wrong free and del_mtd_{partition,device}
commit 176bf2e0f10ecf1d20a97db3bd5bb2e6ba0b5668 ("physmap: fix leak of memory returned by parse_mtd_partitions") deals with a memory leak and frees the pointer array of mtd_partition after the call to add_mtd_partitions(). the problem is that mtd_table[x]->name still points to the freed memory. Aldo physmap_flash_remove() should call del_mtd_partitions() or del_mtd_device() only once. Signed-off-by: Atsushi Nemoto <[email protected]> Reported-by: Matthias Kaehlcke <[email protected]> Tested-by: Matthias Kaehlcke <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions