Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bce31d4c authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: fix incorrect use of fcheck



The usage isn't RCU protected.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org
parent 11a88c2e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ static int amdgpu_sched_process_priority_override(struct amdgpu_device *adev,
						  int fd,
						  enum drm_sched_priority priority)
{
	struct file *filp = fcheck(fd);
	struct file *filp = fget(fd);
	struct drm_file *file;
	struct pid *pid;
	struct amdgpu_fpriv *fpriv;
@@ -78,6 +78,8 @@ static int amdgpu_sched_process_priority_override(struct amdgpu_device *adev,

	put_pid(pid);

	fput(filp);

	return 0;
}