X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Finspector.c;h=56b6fa5b45b833e90d4c4d389d5b68970e536875;hb=0b2115047303e779be8578e9802cfa55d1767c7b;hp=7d3ccf28eb283c591d499da88fe8398188bcf85a;hpb=ae17be15b87687b72162680b335d64b741d0bb6b;p=palacios.git diff --git a/linux_module/inspector.c b/linux_module/inspector.c index 7d3ccf2..56b6fa5 100644 --- a/linux_module/inspector.c +++ b/linux_module/inspector.c @@ -64,7 +64,7 @@ static int inspect_vm(struct v3_guest * guest, unsigned int cmd, unsigned long a guest_dir = debugfs_create_dir(guest->name, v3_dir); - if (IS_ERR(guest_dir)) { + if (!guest_dir || IS_ERR(guest_dir)) { ERROR("Error Creating inspector tree for VM \"%s\"\n", guest->name); return -1; } @@ -79,7 +79,7 @@ static int init_inspector( void ) { v3_dir = debugfs_create_dir("v3vee", NULL); - if (IS_ERR(v3_dir)) { + if (!v3_dir || IS_ERR(v3_dir)) { ERROR("Error creating v3vee debugfs directory\n"); return -1; }