Commit 702e97e7 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] [janitor] vga16fb: add missing iounmap()

From: "Randy.Dunlap" <rddunlap@osdl.org>
      Leann Ogasawara <ogasawara@osdl.org>

Patch inserts missing iounmap() on error.
parent e9589567
......@@ -1373,8 +1373,10 @@ int __init vga16fb_init(void)
i = (vga16fb_defined.bits_per_pixel == 8) ? 256 : 16;
fb_alloc_cmap(&vga16fb.cmap, i, 0);
if (vga16fb_check_var(&vga16fb.var, &vga16fb))
if (vga16fb_check_var(&vga16fb.var, &vga16fb)) {
iounmap(vga16fb.screen_base);
return -EINVAL;
}
vga16fb_update_fix(&vga16fb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment