[Bug 264247] drm: Prevent division by zero

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 May 2022 02:52:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264247

            Bug ID: 264247
           Summary: drm: Prevent division by zero
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ruc_gongyuanjun@163.com

Created attachment 234220
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234220&action=edit
a possible patch

Check mode->htotal and return if it equals zero.
Prevent division by zero htotal.

-- 
You are receiving this mail because:
You are the assignee for the bug.