diff options
| author | Felix Kuehling <[email protected]> | 2019-12-05 02:23:08 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-01-09 21:08:19 +0000 |
| commit | 0f899fd466b693a129b16994c1b2b4db2fcde4a4 (patch) | |
| tree | eeaa5e9705a701ac6e665860383950c8d734f605 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | drm/amd/display: Reduce HDMI pixel encoding if max clock is exceeded (diff) | |
| download | kernel-0f899fd466b693a129b16994c1b2b4db2fcde4a4.tar.gz kernel-0f899fd466b693a129b16994c1b2b4db2fcde4a4.zip | |
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 <[email protected]>
Reviewed-by: Philip Yang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
