[Bug 264247] drm: Prevent division by zero
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264247] drm: Prevent division by zero"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
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.