Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c390eed0 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm: Don't leak fb when plane crtc coodinates are bad

parent 2b760d88
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2341,7 +2341,8 @@ static int __setplane_internal(struct drm_plane *plane,
	    crtc_y > INT_MAX - (int32_t) crtc_h) {
		DRM_DEBUG_KMS("Invalid CRTC coordinates %ux%u+%d+%d\n",
			      crtc_w, crtc_h, crtc_x, crtc_y);
		return -ERANGE;
		ret = -ERANGE;
		goto out;
	}