projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f56b2
)
drm/fb_cma_helper: do not free fbdev if there is none
author
Stefan Agner
<stefan@agner.ch>
Thu, 20 Oct 2016 00:32:19 +0000
(17:32 -0700)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 20 Oct 2016 07:05:34 +0000
(09:05 +0200)
If fbdev emulation is not in use (or not built-in), fb_helper.fbdev
is NULL. Don't call calling drm_fbdev_cma_defio_fini in this case.
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/20161020003221.2941-2-stefan@agner.ch
drivers/gpu/drm/drm_fb_cma_helper.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/drm_fb_cma_helper.c
b/drivers/gpu/drm/drm_fb_cma_helper.c
index fac4f06f8485e06e7b89af61f6ca47e1e452f5ee..4c6664407bfb36be08bbaff759c64aada474c709 100644
(file)
--- a/
drivers/gpu/drm/drm_fb_cma_helper.c
+++ b/
drivers/gpu/drm/drm_fb_cma_helper.c
@@
-560,7
+560,8
@@
EXPORT_SYMBOL_GPL(drm_fbdev_cma_init);
void drm_fbdev_cma_fini(struct drm_fbdev_cma *fbdev_cma)
{
drm_fb_helper_unregister_fbi(&fbdev_cma->fb_helper);
- drm_fbdev_cma_defio_fini(fbdev_cma->fb_helper.fbdev);
+ if (fbdev_cma->fb_helper.fbdev)
+ drm_fbdev_cma_defio_fini(fbdev_cma->fb_helper.fbdev);
drm_fb_helper_release_fbi(&fbdev_cma->fb_helper);
if (fbdev_cma->fb) {