pxa168fb: fix release function mismatch in probe failure
The driver uses kfree() to release the resource allocated by
framebuffer_alloc(), which does not match.
Use framebuffer_release() instead to fix it.
Fixes: 638772c755
("fb: add support of LCD display controller on pxa168/910 (base layer)")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191205160613.32075-1-hslester96@gmail.com
This commit is contained in:
parent
bc5e36f3d2
commit
28388b3325
1 changed files with 1 additions and 1 deletions
|
@ -769,7 +769,7 @@ failed_free_fbmem:
|
|||
dma_free_wc(fbi->dev, info->fix.smem_len,
|
||||
info->screen_base, fbi->fb_start_dma);
|
||||
failed_free_info:
|
||||
kfree(info);
|
||||
framebuffer_release(info);
|
||||
|
||||
dev_err(&pdev->dev, "frame buffer device init failed with %d\n", ret);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Reference in a new issue