* [PATCH 7/18] s1d13xxxfb: Fix resource leak
@ 2006-03-11 1:50 Antonino A. Daplas
2006-03-11 16:22 ` Thibaut VARENE
0 siblings, 1 reply; 2+ messages in thread
From: Antonino A. Daplas @ 2006-03-11 1:50 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Fbdev development list, Thibaut VARENE
struct info may not be released in the driver's error path.
Coverity Bug 672
Signed-off-by: Antonino Daplas <adaplas@pol.net>
---
drivers/video/s1d13xxxfb.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c
index e5d0f92..feec47b 100644
--- a/drivers/video/s1d13xxxfb.c
+++ b/drivers/video/s1d13xxxfb.c
@@ -588,6 +588,7 @@ s1d13xxxfb_probe(struct platform_device
goto bail;
}
+ platform_set_drvdata(pdev, info);
default_par = info->par;
default_par->regs = ioremap_nocache(pdev->resource[1].start,
pdev->resource[1].end - pdev->resource[1].start +1);
@@ -638,8 +639,6 @@ s1d13xxxfb_probe(struct platform_device
goto bail;
}
- platform_set_drvdata(pdev, info);
-
printk(KERN_INFO "fb%d: %s frame buffer device\n",
info->node, info->fix.id);
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 7/18] s1d13xxxfb: Fix resource leak
2006-03-11 1:50 [PATCH 7/18] s1d13xxxfb: Fix resource leak Antonino A. Daplas
@ 2006-03-11 16:22 ` Thibaut VARENE
0 siblings, 0 replies; 2+ messages in thread
From: Thibaut VARENE @ 2006-03-11 16:22 UTC (permalink / raw)
To: Antonino A. Daplas; +Cc: Andrew Morton, Linux Fbdev development list
Acked-by: Thibaut VARENE <varenet@parisc-linux.org>
On 3/10/06, Antonino A. Daplas <adaplas@gmail.com> wrote:
> struct info may not be released in the driver's error path.
>
> Coverity Bug 672
>
> Signed-off-by: Antonino Daplas <adaplas@pol.net>
> ---
>
> drivers/video/s1d13xxxfb.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c
> index e5d0f92..feec47b 100644
> --- a/drivers/video/s1d13xxxfb.c
> +++ b/drivers/video/s1d13xxxfb.c
> @@ -588,6 +588,7 @@ s1d13xxxfb_probe(struct platform_device
> goto bail;
> }
>
> + platform_set_drvdata(pdev, info);
> default_par = info->par;
> default_par->regs = ioremap_nocache(pdev->resource[1].start,
> pdev->resource[1].end - pdev->resource[1].start +1);
> @@ -638,8 +639,6 @@ s1d13xxxfb_probe(struct platform_device
> goto bail;
> }
>
> - platform_set_drvdata(pdev, info);
> -
> printk(KERN_INFO "fb%d: %s frame buffer device\n",
> info->node, info->fix.id);
>
>
>
>
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-11 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-11 1:50 [PATCH 7/18] s1d13xxxfb: Fix resource leak Antonino A. Daplas
2006-03-11 16:22 ` Thibaut VARENE
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.