> + /* > + * We can take a larger source and scale it down, but > + * only so much... 16x is the max on SNB. > + */ > + if (((src_w * src_h) / (crtc_w * crtc_h)) > intel_plane->max_downscale) > + return -EINVAL; > + [Lan, Hai] if crtc_w or crtc_h = 0, the drm driver will crash.