From 8a8c2b288356e1241ceab743b8aa7ad8cd2aba83 Mon Sep 17 00:00:00 2001 From: Pavel Shved Date: Fri, 17 Jun 2011 16:25:12 +0000 Subject: [PATCH] --- yaml --- r: 254292 b: refs/heads/master c: 291600193e5c0c3f0a9af1f23a8076dd7417c02a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/video/hecubafb.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c3abdb96427d..401b33fb39da 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9845afc8fa32de145d56c8e69b7900e10371255d +refs/heads/master: 291600193e5c0c3f0a9af1f23a8076dd7417c02a diff --git a/trunk/drivers/video/hecubafb.c b/trunk/drivers/video/hecubafb.c index fbef15f7a218..614251a9af91 100644 --- a/trunk/drivers/video/hecubafb.c +++ b/trunk/drivers/video/hecubafb.c @@ -233,7 +233,7 @@ static int __devinit hecubafb_probe(struct platform_device *dev) videomemory = vzalloc(videomemorysize); if (!videomemory) - return retval; + goto err_videomem_alloc; info = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); if (!info) @@ -275,6 +275,7 @@ static int __devinit hecubafb_probe(struct platform_device *dev) framebuffer_release(info); err_fballoc: vfree(videomemory); +err_videomem_alloc: module_put(board->owner); return retval; }