[PATCH drm-next] drm/msm/dp: Fix potential division by zero issue

2024-11-20 Thread Dheeraj Reddy Jonnalagadda
. Signed-off-by: Dheeraj Reddy Jonnalagadda --- drivers/gpu/drm/msm/dp/dp_catalog.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_catalog.c b/drivers/gpu/drm/msm/dp/dp_catalog.c index b4c8856fb25d..e170f70f1d42 100644 --- a/drivers/gpu/drm/msm

Re: [PATCH drm-next] drm/msm/dp: Fix potential division by zero issue

2024-11-20 Thread Dheeraj Reddy Jonnalagadda
On Wed, Nov 20, 2024 at 01:02:32PM +0200, Dmitry Baryshkov wrote: > On Wed, Nov 20, 2024 at 10:34:51AM +0530, Dheeraj Reddy Jonnalagadda wrote: > > The variable pixel_div can remain zero due to an invalid rate input, > > No, it can not. Rate is set by the driver, which knowns