Bug 264247 - drm: Prevent division by zero
Summary: drm: Prevent division by zero
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-26 02:52 UTC by ruc_gongyuanjun
Modified: 2022-05-26 23:53 UTC (History)
2 users (show)

See Also:


Attachments
a possible patch (859 bytes, patch)
2022-05-26 02:52 UTC, ruc_gongyuanjun
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description ruc_gongyuanjun 2022-05-26 02:52:42 UTC
Created attachment 234220 [details]
a possible patch

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