Message ID | 566A96CB.4020309@samsung.com |
---|---|
State | Superseded |
Headers | show |
--- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c @@ -132,12 +132,13 @@ static void vidi_update_plane(struct exynos_drm_crtc *crtc, struct exynos_drm_plane *plane) { struct vidi_context *ctx = crtc->ctx; - dma_addr_t addr; + dma_addr_t addr = 0; if (ctx->suspended) return; - addr = exynos_drm_fb_dma_addr(plane->base.fb, 0); + if (plane->base.fb) + addr = exynos_drm_fb_dma_addr(plane->base.fb, 0); DRM_DEBUG_KMS("dma_addr = %pad\n", &addr);