mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm: Don't leak fb when plane crtc coodinates are bad
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
2b760d88a0
commit
c390eed025
1 changed files with 2 additions and 1 deletions
|
@ -2341,7 +2341,8 @@ static int __setplane_internal(struct drm_plane *plane,
|
||||||
crtc_y > INT_MAX - (int32_t) crtc_h) {
|
crtc_y > INT_MAX - (int32_t) crtc_h) {
|
||||||
DRM_DEBUG_KMS("Invalid CRTC coordinates %ux%u+%d+%d\n",
|
DRM_DEBUG_KMS("Invalid CRTC coordinates %ux%u+%d+%d\n",
|
||||||
crtc_w, crtc_h, crtc_x, crtc_y);
|
crtc_w, crtc_h, crtc_x, crtc_y);
|
||||||
return -ERANGE;
|
ret = -ERANGE;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue