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
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
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
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