mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 12:30:53 +07:00
[PATCH] s1d13xxxfb: Fix resource leak
struct info may not be released in the driver's error path. Coverity Bug 672 Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
939205b273
commit
98365f5eb4
@ -588,6 +588,7 @@ s1d13xxxfb_probe(struct platform_device *pdev)
|
||||
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 *pdev)
|
||||
goto bail;
|
||||
}
|
||||
|
||||
platform_set_drvdata(pdev, info);
|
||||
|
||||
printk(KERN_INFO "fb%d: %s frame buffer device\n",
|
||||
info->node, info->fix.id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user