Re: [PATCH] drm/modes: Prevent division by zero htotal

2019-01-24 Thread Daniel Vetter
; Cc: intel-...@lists.freedesktop.org; dri-devel@lists.freedesktop.org; Adam > > Jackson ; Dave Airlie ; Daniel Vetter > > > > Subject: Re: [PATCH] drm/modes: Prevent division by zero htotal > > > > On Wed, Jan 23, 2019 at 03:28:59PM +0800, Tina Zhang wrote: > >

RE: [PATCH] drm/modes: Prevent division by zero htotal

2019-01-23 Thread Zhang, Tina
ie ; Daniel Vetter > > Subject: Re: [PATCH] drm/modes: Prevent division by zero htotal > > On Wed, Jan 23, 2019 at 03:28:59PM +0800, Tina Zhang wrote: > > This patch prevents division by zero htotal. > > How did you manage to get here with htotal == 0? This needs backtraces (or

Re: [PATCH] drm/modes: Prevent division by zero htotal

2019-01-23 Thread Daniel Vetter
On Wed, Jan 23, 2019 at 03:28:59PM +0800, Tina Zhang wrote: > This patch prevents division by zero htotal. How did you manage to get here with htotal == 0? This needs backtraces (or if this is just about static checkers, a mention of that). -Daniel > > Signed-off-by: Tina Zhang > Cc: Adam Jacks

[PATCH] drm/modes: Prevent division by zero htotal

2019-01-22 Thread Tina Zhang
This patch prevents division by zero htotal. Signed-off-by: Tina Zhang Cc: Adam Jackson Cc: Dave Airlie Cc: Daniel Vetter --- drivers/gpu/drm/drm_modes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index adce9a2