diff options
| author | Suraj Kandpal <suraj.kandpal@intel.com> | 2025-08-19 21:34:39 +0530 | 
|---|---|---|
| committer | Suraj Kandpal <suraj.kandpal@intel.com> | 2025-08-21 09:45:10 +0530 | 
| commit | 11c09b55b3d36f5cfa15873e2e0f1e04166bcfd4 (patch) | |
| tree | 9bb9a3d49b1f15a104940290e0e10cdf9fa2a598 /rust/helpers/xarray.c | |
| parent | 9b1795e9b0ae6d8b2c50987048170f77d0dc0300 (diff) | |
drm/i915/backlight: Fix divide by 0 error in i9xx_set_backlight
pwm_level_max maybe 0 we do throw a warning but move ahead with
execution which may later cause a /0 error.
--v2
-return if the warn_on gets hit [Jani]
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/20250819160438.145734-1-suraj.kandpal@intel.com
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
