Commit a1e2da6a authored by Igor Artemiev's avatar Igor Artemiev Committed by Alex Deucher
Browse files

drm/radeon/r600_cs: Fix possible int overflow in r600_packet3_check()



It is possible, although unlikely, that an integer overflow will occur
when the result of radeon_get_ib_value() is shifted to the left.

Avoid it by casting one of the operands to larger data type (u64).

Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.

Signed-off-by: default avatarIgor Artemiev <Igor.A.Artemiev@mcst.ru>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a3f4060e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment