drm: tegra: Check return value of drm_vblank_get()
PATCH 1/1 drm: tegra: Check return value of drm_vblank_get()
drm_vblank_get() can return an error, which we should propagate.
Signed-off-by Alexandre Courbot <[email protected]>
--- drivers/gpu/drm/tegra/dc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/tegra/dc.c +4 -1
@@ -699,6 +699,7 @@ static int tegra_dc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, {struct tegra_dc *dc =to_tegra_dc (crtc);struct drm_device *drm = crtc->dev; +int ret;if (dc->event)return -EBUSY ;
@@ -706,7 +707,9 @@ static int tegra_dc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,if (event) { event->pipe = dc->pipe; dc->event = event; -drm_vblank_get (drm, dc->pipe); + ret =drm_vblank_get (drm, dc->pipe); +if (ret <0 ) +return ret; }tegra_dc_set_base (dc,0 ,0 , fb);
Signature · 1 line
2.1.2