diff options
-rw-r--r-- | drivers/video/offb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/offb.c b/drivers/video/offb.c index 9a40bbecf76b..9576a55eaf16 100644 --- a/drivers/video/offb.c +++ b/drivers/video/offb.c | |||
@@ -402,6 +402,9 @@ static void __init offb_init_fb(const char *name, const char *full_name, | |||
402 | fb_alloc_cmap(&info->cmap, 256, 0); | 402 | fb_alloc_cmap(&info->cmap, 256, 0); |
403 | 403 | ||
404 | if (register_framebuffer(info) < 0) { | 404 | if (register_framebuffer(info) < 0) { |
405 | iounmap(par->cmap_adr); | ||
406 | par->cmap_adr = NULL; | ||
407 | iounmap(info->screen_base); | ||
405 | kfree(info); | 408 | kfree(info); |
406 | release_mem_region(res_start, res_size); | 409 | release_mem_region(res_start, res_size); |
407 | return; | 410 | return; |