There was an error while loading. Please reload this page.
2 parents 05d77bd + 41da341 commit 06a2347Copy full SHA for 06a2347
1 file changed
mod-tdx-guest/mod.c
@@ -107,6 +107,11 @@ static long tdx_extend_rtmr(struct tdx_extend_rtmr_req __user *req)
107
goto out;
108
}
109
110
+ if (index > 3) {
111
+ ret = -EINVAL;
112
+ goto out;
113
+ }
114
+
115
{
116
struct tdx_module_args args = {
117
.rcx = virt_to_phys(data),
@@ -164,12 +169,7 @@ static int __init tdx_guest_init(void)
164
169
if (ret)
165
170
return ret;
166
171
167
-
168
172
return 0;
- misc_deregister(&tdx_misc_dev);
- return ret;
173
174
module_init(tdx_guest_init);
175
0 commit comments