Skip to contentSkip to conversation

video: fbdev: vesafb: add missed release_region

PATCH Superseded Chuhong Yuan 1 participant 1 message Nov 16, 2019 Framebuffer layer

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video: fbdev: vesafb: add missed release_region

This driver calls request_region in probe but forgets to call release_region in probe failure and remove.
Add the missed calls to fix it.

---
 drivers/video/fbdev/vesafb.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/video/fbdev/vesafb.c +2 -0
index d9c08f6c2155..fbb196a8bbf6 100644
@@ -468,6 +468,7 @@ static int vesafb_probe(struct platform_device *dev)
 	fb_info(info, "%s frame buffer device\n", info->fix.id);
 	return 0;
 err:
+	release_region(0x3c0, 32);
 	arch_phys_wc_del(par->wc_cookie);
 	if (info->screen_base)
 		iounmap(info->screen_base);
@@ -480,6 +481,7 @@ static int vesafb_remove(struct platform_device *pdev)
 {
 	struct fb_info *info = platform_get_drvdata(pdev);
 
+	release_region(0x3c0, 32);
 	unregister_framebuffer(info);
 	framebuffer_release(info);
 
Signature · 1 line
2.24.0