]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix a && vs || typo
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 7 Oct 2019 08:52:10 +0000 (11:52 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2019 20:11:02 +0000 (15:11 -0500)
commit070f767ee9714bcea7b8347bba884e671b58ba4c
treecd694e6d7afe60987715710fb34440cdea9ef00c
parent78cab7d9ce575f71121b12198d1c77e753fe986e
drm/amdkfd: Fix a && vs || typo

In the current code if "device_info" is ever NULL then the kernel will
Oops so probably || was intended instead of &&.

Fixes: fd0e66a6f7b4 ("drm/amdkfd: Use array to probe kfd2kgd_calls")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c