Skip to content

Commit

Permalink
Fix code scanning alert torvalds#44: Multiplication result converted …
Browse files Browse the repository at this point in the history
…to larger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
offsoc and github-advanced-security[bot] authored Sep 23, 2024
1 parent 99a884b commit 800c97d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/display/drm_dsc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ int drm_dsc_compute_rc_parameters(struct drm_dsc_config *vdsc_cfg)
(4 * vdsc_cfg->bits_per_component + 4) +
2 * (4 * vdsc_cfg->bits_per_component) - 2;
/* Number of bits in one Slice */
slice_bits = 8 * vdsc_cfg->slice_chunk_size * vdsc_cfg->slice_height;
slice_bits = 8 * (unsigned long)vdsc_cfg->slice_chunk_size * vdsc_cfg->slice_height;

while ((num_extra_mux_bits > 0) &&
((slice_bits - num_extra_mux_bits) % vdsc_cfg->mux_word_size))
Expand Down

0 comments on commit 800c97d

Please sign in to comment.