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

Commit 66333cb3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Oded Gabbay
Browse files

amdkfd: fix some error handling in ioctl



There is a typo here so the errors from kfd_bind_process_to_device()
are not detected.

Reviewed-by: default avatarOded Gabbay <oded.gabbay@amd.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarOded Gabbay <oded.gabbay@amd.com>
parent a49493b5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -242,7 +242,7 @@ static long kfd_ioctl_create_queue(struct file *filep, struct kfd_process *p,
	mutex_lock(&p->mutex);

	pdd = kfd_bind_process_to_device(dev, p);
	if (IS_ERR(pdd) < 0) {
	if (IS_ERR(pdd)) {
		err = PTR_ERR(pdd);
		goto err_bind_process;
	}
@@ -389,7 +389,7 @@ static long kfd_ioctl_set_memory_policy(struct file *filep,
	mutex_lock(&p->mutex);

	pdd = kfd_bind_process_to_device(dev, p);
	if (IS_ERR(pdd) < 0) {
	if (IS_ERR(pdd)) {
		err = PTR_ERR(pdd);
		goto out;
	}