diff options
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_crtc.c | 7 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_legacy_crtc.c | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c b/drivers/gpu/drm/radeon/atombios_crtc.c index c15287a590ff..f5987afcd48d 100644 --- a/drivers/gpu/drm/radeon/atombios_crtc.c +++ b/drivers/gpu/drm/radeon/atombios_crtc.c | |||
@@ -578,8 +578,11 @@ int atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y, | |||
578 | uint64_t fb_location; | 578 | uint64_t fb_location; |
579 | uint32_t fb_format, fb_pitch_pixels, tiling_flags; | 579 | uint32_t fb_format, fb_pitch_pixels, tiling_flags; |
580 | 580 | ||
581 | if (!crtc->fb) | 581 | /* no fb bound */ |
582 | return -EINVAL; | 582 | if (!crtc->fb) { |
583 | DRM_DEBUG("No FB bound\n"); | ||
584 | return 0; | ||
585 | } | ||
583 | 586 | ||
584 | radeon_fb = to_radeon_framebuffer(crtc->fb); | 587 | radeon_fb = to_radeon_framebuffer(crtc->fb); |
585 | 588 | ||
diff --git a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c index 8d0b7aa87fa4..5794364ff857 100644 --- a/drivers/gpu/drm/radeon/radeon_legacy_crtc.c +++ b/drivers/gpu/drm/radeon/radeon_legacy_crtc.c | |||
@@ -408,6 +408,11 @@ int radeon_crtc_set_base(struct drm_crtc *crtc, int x, int y, | |||
408 | uint32_t gen_cntl_reg, gen_cntl_val; | 408 | uint32_t gen_cntl_reg, gen_cntl_val; |
409 | 409 | ||
410 | DRM_DEBUG("\n"); | 410 | DRM_DEBUG("\n"); |
411 | /* no fb bound */ | ||
412 | if (!crtc->fb) { | ||
413 | DRM_DEBUG("No FB bound\n"); | ||
414 | return 0; | ||
415 | } | ||
411 | 416 | ||
412 | radeon_fb = to_radeon_framebuffer(crtc->fb); | 417 | radeon_fb = to_radeon_framebuffer(crtc->fb); |
413 | 418 | ||