Skip to content

Commit

Permalink
Merge pull request #7 from offsoc/autofix/alert-44-5bdf64c2f9
Browse files Browse the repository at this point in the history
Fix code scanning alert torvalds#44: Multiplication result converted to larger type
  • Loading branch information
offsoc authored Sep 23, 2024
2 parents 99a884b + 800c97d commit 46b5882
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 46b5882

Please sign in to comment.