OSDN Git Service

drm/amd/amdgpu: Add missing "DDR4" label
authorTom St Denis <tom.stdenis@amd.com>
Fri, 9 Mar 2018 11:16:55 +0000 (06:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Mar 2018 19:38:25 +0000 (14:38 -0500)
The commit d296278fd372003fc69588acfd0c0c5edbdf4874 added support for
detecting DDR4 but omitted the label that is printed out in
amdgpu_bo_init() resulting in a KASAN error.

Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c

index 9157745..3ad2b6c 100644 (file)
@@ -821,7 +821,8 @@ static const char *amdgpu_vram_names[] = {
        "GDDR4",
        "GDDR5",
        "HBM",
-       "DDR3"
+       "DDR3",
+       "DDR4",
 };
 
 int amdgpu_bo_init(struct amdgpu_device *adev)