aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-03-30 02:25:17 +0000
committerOded Gabbay <oded.gabbay@gmail.com>2018-04-24 12:14:55 +0300
commitded5e5622c38f6d0188c776bfd6793e1cdbb7606 (patch)
tree52b3f8d03fd32a4efa8a8b88b6ac21b73c86add2 /tools/perf/scripts/python
parenta4efd3a4e685df239805ebd57f546904d5821114 (diff)
drm/amdkfd: Fix the error return code in kfd_ioctl_unmap_memory_from_gpu()
Passing NULL pointer to PTR_ERR will result in return value of 0 indicating success which is clearly not what it is intended here. This patch returns -EINVAL instead. v2: change ret code to -ENODEV Fixes: 5ec7e02854b3 ("drm/amdkfd: Add ioctls for GPUVM memory management") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions