* [PATCH] pxa2xx-flash.c: fix memory leak
@ 2009-03-24 0:19 Daniel Mack
2009-03-24 0:22 ` Nicolas Pitre
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2009-03-24 0:19 UTC (permalink / raw)
To: linux-mtd; +Cc: Nicolas Pitre, Daniel Mack
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Nicolas Pitre <nico@cam.org>
---
drivers/mtd/maps/pxa2xx-flash.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
index 771139c..9d66881 100644
--- a/drivers/mtd/maps/pxa2xx-flash.c
+++ b/drivers/mtd/maps/pxa2xx-flash.c
@@ -70,6 +70,7 @@ static int __init pxa2xx_flash_probe(struct device *dev)
if (!info->map.virt) {
printk(KERN_WARNING "Failed to ioremap %s\n",
info->map.name);
+ kfree(info);
return -ENOMEM;
}
info->map.cached =
@@ -92,6 +93,7 @@ static int __init pxa2xx_flash_probe(struct device *dev)
iounmap((void *)info->map.virt);
if (info->map.cached)
iounmap(info->map.cached);
+ kfree(info);
return -EIO;
}
info->mtd->owner = THIS_MODULE;
--
1.6.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pxa2xx-flash.c: fix memory leak
2009-03-24 0:19 [PATCH] pxa2xx-flash.c: fix memory leak Daniel Mack
@ 2009-03-24 0:22 ` Nicolas Pitre
2009-03-24 0:31 ` Daniel Mack
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pitre @ 2009-03-24 0:22 UTC (permalink / raw)
To: Daniel Mack; +Cc: linux-mtd
On Tue, 24 Mar 2009, Daniel Mack wrote:
>
> Signed-off-by: Daniel Mack <daniel@caiaq.de>
> Cc: Nicolas Pitre <nico@cam.org>
Acked-by: Nicolas Pitre <nico@cam.org>
> ---
> drivers/mtd/maps/pxa2xx-flash.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mtd/maps/pxa2xx-flash.c b/drivers/mtd/maps/pxa2xx-flash.c
> index 771139c..9d66881 100644
> --- a/drivers/mtd/maps/pxa2xx-flash.c
> +++ b/drivers/mtd/maps/pxa2xx-flash.c
> @@ -70,6 +70,7 @@ static int __init pxa2xx_flash_probe(struct device *dev)
> if (!info->map.virt) {
> printk(KERN_WARNING "Failed to ioremap %s\n",
> info->map.name);
> + kfree(info);
> return -ENOMEM;
> }
> info->map.cached =
> @@ -92,6 +93,7 @@ static int __init pxa2xx_flash_probe(struct device *dev)
> iounmap((void *)info->map.virt);
> if (info->map.cached)
> iounmap(info->map.cached);
> + kfree(info);
> return -EIO;
> }
> info->mtd->owner = THIS_MODULE;
> --
> 1.6.2
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pxa2xx-flash.c: fix memory leak
2009-03-24 0:22 ` Nicolas Pitre
@ 2009-03-24 0:31 ` Daniel Mack
2009-03-24 0:51 ` Nicolas Pitre
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Mack @ 2009-03-24 0:31 UTC (permalink / raw)
To: Nicolas Pitre; +Cc: linux-mtd
On Mon, Mar 23, 2009 at 08:22:26PM -0400, Nicolas Pitre wrote:
> > Signed-off-by: Daniel Mack <daniel@caiaq.de>
> > Cc: Nicolas Pitre <nico@cam.org>
>
> Acked-by: Nicolas Pitre <nico@cam.org>
Thanks - any idea which channel to choose to make it go mainline?
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pxa2xx-flash.c: fix memory leak
2009-03-24 0:31 ` Daniel Mack
@ 2009-03-24 0:51 ` Nicolas Pitre
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pitre @ 2009-03-24 0:51 UTC (permalink / raw)
To: Daniel Mack; +Cc: linux-mtd
On Tue, 24 Mar 2009, Daniel Mack wrote:
> On Mon, Mar 23, 2009 at 08:22:26PM -0400, Nicolas Pitre wrote:
> > > Signed-off-by: Daniel Mack <daniel@caiaq.de>
> > > Cc: Nicolas Pitre <nico@cam.org>
> >
> > Acked-by: Nicolas Pitre <nico@cam.org>
>
> Thanks - any idea which channel to choose to make it go mainline?
The MTD tree.
Nicolas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-24 0:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24 0:19 [PATCH] pxa2xx-flash.c: fix memory leak Daniel Mack
2009-03-24 0:22 ` Nicolas Pitre
2009-03-24 0:31 ` Daniel Mack
2009-03-24 0:51 ` Nicolas Pitre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.