Re: [PATCH v39 15/24] x86/sgx: Add SGX_IOC_ENCLAVE_PROVISION

From
Dave Hansen <hidden>
Date
2020-10-20 15:49:02
Also in
lkml
Reply to
Jarkko Sakkinen, 2020-10-03
quoted hunk ↗ jump to hunk
 int __init sgx_drv_init(void)
 {
 	unsigned int eax, ebx, ecx, edx;
@@ -181,5 +192,12 @@ int __init sgx_drv_init(void)
 		return ret;
 	}
 
+	ret = misc_register(&sgx_dev_provision);
+	if (ret) {
+		pr_err("Creating /dev/sgx/provision failed with %d.\n", ret);
+		misc_deregister(&sgx_dev_enclave);
+		return ret;
+	}
+
Isn't it a *bit* too specific to say that a device file failed to be
created?  Do other misc devices use this kind of message?
Thread (12 messages) 12 messages, 7 authors, last reply 2020-10-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help