if (root == NULL) {
- printk("No inspection root found\n");
+ ERROR("No inspection root found\n");
return -1;
}
guest_dir = debugfs_create_dir(guest->name, v3_dir);
- if (IS_ERR(guest_dir)) {
- printk("Error Creating inspector tree for VM \"%s\"\n", guest->name);
+ if (!guest_dir || IS_ERR(guest_dir)) {
+ ERROR("Error Creating inspector tree for VM \"%s\"\n", guest->name);
return -1;
}
v3_dir = debugfs_create_dir("v3vee", NULL);
- if (IS_ERR(v3_dir)) {
- printk("Error creating v3vee debugfs directory\n");
+ if (!v3_dir || IS_ERR(v3_dir)) {
+ ERROR("Error creating v3vee debugfs directory\n");
return -1;
}
}
static int guest_deinit(struct v3_guest * guest, void * vm_data) {
-
+ remove_guest_ctrl(guest, V3_VM_INSPECT);
+
return 0;
}