From: Thierry Reding Date: Thu, 9 Sep 2021 12:10:23 +0000 (+0200) Subject: drm/tegra: Propagate errors from drm_gem_plane_helper_prepare_fb() X-Git-Tag: v5.17-rc1~173^2~7^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee423808990d6fa6b367561a2390ad99b1551d6b;p=thirdparty%2Flinux.git drm/tegra: Propagate errors from drm_gem_plane_helper_prepare_fb() Currently this function doesn't return an error, but that may change in the future, so make sure to propagate any error codes that it might return. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/plane.c b/drivers/gpu/drm/tegra/plane.c index f8e8afcbcbf2d..321cb1f13da63 100644 --- a/drivers/gpu/drm/tegra/plane.c +++ b/drivers/gpu/drm/tegra/plane.c @@ -200,11 +200,14 @@ int tegra_plane_prepare_fb(struct drm_plane *plane, struct drm_plane_state *state) { struct tegra_dc *dc = to_tegra_dc(state->crtc); + int err; if (!state->fb) return 0; - drm_gem_plane_helper_prepare_fb(plane, state); + err = drm_gem_plane_helper_prepare_fb(plane, state); + if (err < 0) + return err; return tegra_dc_pin(dc, to_tegra_plane_state(state)); }