drm/amdkfd: Add NULL-pointer check
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 21 Nov 2018 01:52:37 +0000 (20:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Dec 2018 23:13:48 +0000 (18:13 -0500)
commit3704d56e1a64bb0e951815f91149ae7bb726aa76
tree2adc25a157b1bab7c9984b94dbeef11c9d40fc72
parent611736d8447c0c48a172db0b968dddae60696a72
drm/amdkfd: Add NULL-pointer check

top_dev->gpu is NULL for CPUs. Avoid dereferencing it if NULL.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c