mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drm/amdkfd: Set priv_queue to NULL after it is freed
This variable will be used to determine whether packet manager is initialized or not, in a future patch. Signed-off-by: Oak Zeng <Oak.Zeng@amd.com> Acked-by: Christian Konig <christian.koenig@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
9af5379c85
commit
78ccea9ff2
|
|
@ -278,6 +278,7 @@ void pm_uninit(struct packet_manager *pm, bool hanging)
|
|||
{
|
||||
mutex_destroy(&pm->lock);
|
||||
kernel_queue_uninit(pm->priv_queue, hanging);
|
||||
pm->priv_queue = NULL;
|
||||
}
|
||||
|
||||
int pm_send_set_resources(struct packet_manager *pm,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user