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

Commit 2804adf8 authored by Matt Wagantall's avatar Matt Wagantall
Browse files

mdss: display: unmap 'fb_addr_va' when the mapping is no longer needed



Remove the mapping to the original continuous splash frame buffer
once its contents have been copied. This avoids a virtual address
leak, and holding a mapping to memory that may be eventually
reclaimed for use by other subsystem.

Change-Id: I8d7b6d954809a74d5a1ae60491e295b95458a2b7
Signed-off-by: default avatarMatt Wagantall <mattw@codeaurora.org>
parent d4e01b13
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -680,8 +680,8 @@ int mdss_mdp_video_copy_splash_screen(struct mdss_panel_data *pdata)
			(unsigned long int)virt, &phys);

	fb_addr_va = (unsigned long *)ioremap(fb_addr, size);

	memcpy(virt, fb_addr_va, size);
	iounmap(fb_addr_va);

	sp = splash_pipes;
	flush = 0;