summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorFelix Kuehling <Felix.Kuehling@amd.com>2019-12-04 21:23:08 -0500
committerAlex Deucher <alexander.deucher@amd.com>2020-01-09 16:08:19 -0500
commit0f899fd466b693a129b16994c1b2b4db2fcde4a4 (patch)
treeeeaa5e9705a701ac6e665860383950c8d734f605 /include/drm
parentea117312ea9f4113c4a8f4571a9ba189248721c4 (diff)
drm/amdkfd: Improve kfd_process lookup in kfd_ioctl
Use filep->private_data to store a pointer to the kfd_process data structure. Take an extra reference for that, which gets released in the kfd_release callback. Check that the process calling kfd_ioctl is the same that opened the file descriptor. Return -EBADF if it's not, so that this error can be distinguished in user mode. Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Philip Yang <Philip.Yang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions