diff options
author | 2020-04-23 11:13:47 +0000 | |
---|---|---|
committer | 2020-04-23 11:13:47 +0000 | |
commit | 6d77ca045af39c10af3ea052097ea99c33421134 (patch) | |
tree | 967b9d07dda1e708a8400eb2ae3be61b3b0cc7ae /sys/dev | |
parent | Overrides need to be applied both before and after features in case they (diff) | |
download | wireguard-openbsd-6d77ca045af39c10af3ea052097ea99c33421134.tar.xz wireguard-openbsd-6d77ca045af39c10af3ea052097ea99c33421134.zip |
drm/amdkfd: kfree the wrong pointer
From Jack Zhang
044a884072b4313554d910b792f46c3e1f0099a5 in linux 4.19.y/4.19.118
3148a6a0ef3cf93570f30a477292768f7eb5d3c3 in mainline linux
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/drm/amd/amdkfd/kfd_device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/amd/amdkfd/kfd_device.c b/sys/dev/pci/drm/amd/amdkfd/kfd_device.c index 2abbb2e1756..db623b27831 100644 --- a/sys/dev/pci/drm/amd/amdkfd/kfd_device.c +++ b/sys/dev/pci/drm/amd/amdkfd/kfd_device.c @@ -921,9 +921,9 @@ kfd_gtt_out: return 0; kfd_gtt_no_free_chunk: - pr_debug("Allocation failed with mem_obj = %p\n", mem_obj); + pr_debug("Allocation failed with mem_obj = %p\n", *mem_obj); mutex_unlock(&kfd->gtt_sa_lock); - kfree(mem_obj); + kfree(*mem_obj); return -ENOMEM; } |