public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] physmap_flash_probe() frees memory still in use
@ 2009-01-30 13:43 Matthias Kaehlcke
  2009-01-30 15:52 ` Atsushi Nemoto
  0 siblings, 1 reply; 3+ messages in thread
From: Matthias Kaehlcke @ 2009-01-30 13:43 UTC (permalink / raw)
  To: Atsushi Nemoto
  Cc: Andrew Morton, David Woodhouse, Mike Frysinger, linux-mtd,
	linux-kernel

as i reported earlier in this month
(http://lkml.org/lkml/2009/1/12/141) MTD partition names are screwed
up in 2.6.29-rcX.

commit 176bf2e0f10ecf1d20a97db3bd5bb2e6ba0b5668 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.

-- 
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona

               For to be free is not merely to cast off
               one's chains, but to live in a way that
              respects and enhances the freedom of others
                           (Nelson Mandela)
                                                                 .''`.
    using free software / Debian GNU/Linux | http://debian.org  : :'  :
                                                                `. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4                  `-

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-30 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-30 13:43 [BUG] physmap_flash_probe() frees memory still in use Matthias Kaehlcke
2009-01-30 15:52 ` Atsushi Nemoto
2009-01-30 16:44   ` Matthias Kaehlcke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox