Skip to content

amdgpu: fix deinit logic

Pierre-Eric Pelloux-Prayer requested to merge pepp/drm:admgpu_fix_deinit into main

The devices weren't removed from dev_list.

Instead of just fixing the issue by adding:

if (*node) *node = dev->next;

after the while loop, use this opportunity to use a clearer control flow.

Fixes: 7275ef8e ("amdgpu: add amdgpu_device_initialize2")

Merge request reports

Loading