drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c
authorjsg <jsg@openbsd.org>
Mon, 29 Jan 2024 01:49:28 +0000 (01:49 +0000)
committerjsg <jsg@openbsd.org>
Mon, 29 Jan 2024 01:49:28 +0000 (01:49 +0000)
commit4b9e26d9b2a09b1a87ceecb7c8f8f8d768122164
tree4c31ce2548a86e50dec59dffbe38fdfe1b419cbe
parent02b1d65639bd02002259d606e95b48efe4a875ee
drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c

From Srinivasan Shanmugam
5024cce888e11e5688f77df81db9e14828495d64 in linux-6.6.y/6.6.14
499839eca34ad62d43025ec0b46b80e77065f6d8 in mainline linux
sys/dev/pci/drm/amd/amdkfd/kfd_topology.c