diff options
Diffstat (limited to 'drivers/video/hecubafb.c')
-rw-r--r-- | drivers/video/hecubafb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/hecubafb.c b/drivers/video/hecubafb.c index fbef15f7a218..614251a9af91 100644 --- a/drivers/video/hecubafb.c +++ b/drivers/video/hecubafb.c | |||
@@ -233,7 +233,7 @@ static int __devinit hecubafb_probe(struct platform_device *dev) | |||
233 | 233 | ||
234 | videomemory = vzalloc(videomemorysize); | 234 | videomemory = vzalloc(videomemorysize); |
235 | if (!videomemory) | 235 | if (!videomemory) |
236 | return retval; | 236 | goto err_videomem_alloc; |
237 | 237 | ||
238 | info = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); | 238 | info = framebuffer_alloc(sizeof(struct hecubafb_par), &dev->dev); |
239 | if (!info) | 239 | if (!info) |
@@ -275,6 +275,7 @@ err_fbreg: | |||
275 | framebuffer_release(info); | 275 | framebuffer_release(info); |
276 | err_fballoc: | 276 | err_fballoc: |
277 | vfree(videomemory); | 277 | vfree(videomemory); |
278 | err_videomem_alloc: | ||
278 | module_put(board->owner); | 279 | module_put(board->owner); |
279 | return retval; | 280 | return retval; |
280 | } | 281 | } |