drm/amdgpu/gfx9: Fix incorrect firmware size calculation
authorLei Guo <raykwok1150@163.com>
Tue, 16 Jun 2020 14:03:27 +0000 (10:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2020 05:59:22 +0000 (01:59 -0400)
commit74a353ffa0d49827fe19d71b2d6b18d11325806a
tree8389588967780760ed46f5572704bde2ddcd604a
parentf503fe69ebca2f7a5e1eda1b279609b033b953cd
drm/amdgpu/gfx9: Fix incorrect firmware size calculation

[WHY]
The memcpy() function copies n bytes from memory area src to memory area
dest. So specify the firmware size in bytes.

[How]
Correct the calculation.

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Lei Guo <raykwok1150@163.com>
Reviewed-by: Junwei Zhang <zjunweihit@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c