aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_bitmap.c
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2018-03-30 02:25:17 +0000
committerOded Gabbay <[email protected]>2018-04-24 09:14:55 +0000
commitded5e5622c38f6d0188c776bfd6793e1cdbb7606 (patch)
tree52b3f8d03fd32a4efa8a8b88b6ac21b73c86add2 /lib/test_bitmap.c
parentdrm/amdkfd: kfd_dev_is_large_bar() can be static (diff)
downloadkernel-ded5e5622c38f6d0188c776bfd6793e1cdbb7606.tar.gz
kernel-ded5e5622c38f6d0188c776bfd6793e1cdbb7606.zip
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 <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions