Skip to contentSkip to conversation

amdkfd: fix error printing in kfd_ioctl()

PATCH New Oded Gabbay 1 participant 1 message Dec 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 amdkfd: fix error printing in kfd_ioctl()

When an ioctl function returns -EAGAIN, don't print error in kfd_ioctl()

v2: Also don't print an error if the ioctl function returns -ERESTARTSYS

---
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c +1 -1
index 7d4974b..e10b5b9 100644
@@ -571,7 +571,7 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
 		break;
 	}
 
-	if (err < 0)
+	if ((err < 0) && (err != -EAGAIN) && (err != -ERESTARTSYS))
 		dev_err(kfd_device,
 			"ioctl error %ld for ioctl cmd 0x%x (#%d)\n",
 			err, cmd, _IOC_NR(cmd));
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel