Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 491bcc9b authored by Krzysztof Helt's avatar Krzysztof Helt Committed by Linus Torvalds
Browse files

fbdev: use framebuffer_release() for freeing fb_info structures



Use the framebuffer_release() for freeing fb_info structures allocated
with framebuffer_alloc().

Signed-off-by: default avatarKrzysztof Helt <krzysztof.h1@wp.pl>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f73323de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -493,7 +493,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
		iounmap(par->cmap_adr);
		par->cmap_adr = NULL;
		iounmap(info->screen_base);
		kfree(info);
		framebuffer_release(info);
		release_mem_region(res_start, res_size);
		return;
	}
+1 −1
Original line number Diff line number Diff line
@@ -1748,7 +1748,7 @@ static void __devexit pm2fb_remove(struct pci_dev *pdev)
	pci_set_drvdata(pdev, NULL);
	fb_dealloc_cmap(&info->cmap);
	kfree(info->pixmap.addr);
	kfree(info);
	framebuffer_release(info);
}

static struct pci_device_id pm2fb_id_table[] = {
+2 −2
Original line number Diff line number Diff line
@@ -5928,7 +5928,7 @@ sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
		if(pci_enable_device(pdev)) {
			if(ivideo->nbridge) pci_dev_put(ivideo->nbridge);
			pci_set_drvdata(pdev, NULL);
			kfree(sis_fb_info);
			framebuffer_release(sis_fb_info);
			return -EIO;
		}
	}
@@ -6134,7 +6134,7 @@ error_3: vfree(ivideo->bios_abase);
		pci_set_drvdata(pdev, NULL);
		if(!ivideo->sisvga_enabled)
			pci_disable_device(pdev);
		kfree(sis_fb_info);
		framebuffer_release(sis_fb_info);
		return ret;
	}

+1 −1
Original line number Diff line number Diff line
@@ -1380,7 +1380,7 @@ stifb_cleanup(void)
				if (info->screen_base)
					iounmap(info->screen_base);
		        fb_dealloc_cmap(&info->cmap);
		        kfree(info); 
		        framebuffer_release(info);
		}
		sti->info = NULL;
	}