mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
drm/amdgpu: fix incorrect use of fcheck
The usage isn't RCU protected. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> CC: stable@vger.kernel.org
This commit is contained in:
parent
11a88c2e92
commit
bce31d4c1a
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,7 @@ static int amdgpu_sched_process_priority_override(struct amdgpu_device *adev,
|
||||||
int fd,
|
int fd,
|
||||||
enum drm_sched_priority priority)
|
enum drm_sched_priority priority)
|
||||||
{
|
{
|
||||||
struct file *filp = fcheck(fd);
|
struct file *filp = fget(fd);
|
||||||
struct drm_file *file;
|
struct drm_file *file;
|
||||||
struct pid *pid;
|
struct pid *pid;
|
||||||
struct amdgpu_fpriv *fpriv;
|
struct amdgpu_fpriv *fpriv;
|
||||||
|
@ -78,6 +78,8 @@ static int amdgpu_sched_process_priority_override(struct amdgpu_device *adev,
|
||||||
|
|
||||||
put_pid(pid);
|
put_pid(pid);
|
||||||
|
|
||||||
|
fput(filp);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue