mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
[PATCH] ioremap balanced with iounmap for drivers/video/vesafb
ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad <amol@verismonetworks.com> Cc: "Antonino A. 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
ef26dd7ffa
commit
b88a57cc64
|
|
@ -456,6 +456,8 @@ static int __init vesafb_probe(struct platform_device *dev)
|
|||
info->node, info->fix.id);
|
||||
return 0;
|
||||
err:
|
||||
if (info->screen_base)
|
||||
iounmap(info->screen_base);
|
||||
framebuffer_release(info);
|
||||
release_mem_region(vesafb_fix.smem_start, size_total);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user