[Intel-gfx] [PATCH 1/9] drm: Warn about negative sizes when calculating scale factor

2016-07-29 Thread Sean Paul
On Tue, Jul 26, 2016 at 12:39 PM, Ville Syrjälä wrote: > On Tue, Jul 26, 2016 at 05:24:42PM +0100, Chris Wilson wrote: >> On Tue, Jul 26, 2016 at 07:06:56PM +0300, ville.syrjala at linux.intel.com >> wrote: >> > From: Ville Syrjälä >> > >> > Passing negative width/hight to scale factor calcu

[PATCH 1/9] drm: Warn about negative sizes when calculating scale factor

2016-07-26 Thread Ville Syrjälä
On Tue, Jul 26, 2016 at 05:24:42PM +0100, Chris Wilson wrote: > On Tue, Jul 26, 2016 at 07:06:56PM +0300, ville.syrjala at linux.intel.com > wrote: > > From: Ville Syrjälä > > > > Passing negative width/hight to scale factor calculations is not > > legal. Let's WARN if that happens. > > Does

[PATCH 1/9] drm: Warn about negative sizes when calculating scale factor

2016-07-26 Thread ville.syrj...@linux.intel.com
From: Ville Syrjälä Passing negative width/hight to scale factor calculations is not legal. Let's WARN if that happens. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_rect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_rect.c b/drivers/gpu/d

[PATCH 1/9] drm: Warn about negative sizes when calculating scale factor

2016-07-26 Thread Chris Wilson
On Tue, Jul 26, 2016 at 07:06:56PM +0300, ville.syrjala at linux.intel.com wrote: > From: Ville Syrjälä > > Passing negative width/hight to scale factor calculations is not > legal. Let's WARN if that happens. Does this get called with user controllable inputs? A quick grep leads me to drm_pr