X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=linux_module%2Fpalacios-file.c;h=2f414b55bbf5bbe412d3bdb3c738b803607cbfcd;hb=e595e6c854a5414edc0cd8c8b38545e78c19e549;hp=d26fcb27095e1a46d095065deafb7edd0171e9e1;hpb=260bb3e805ebc92ae294c3c2b36d027ba8bca488;p=palacios.git diff --git a/linux_module/palacios-file.c b/linux_module/palacios-file.c index d26fcb2..2f414b5 100644 --- a/linux_module/palacios-file.c +++ b/linux_module/palacios-file.c @@ -11,7 +11,7 @@ #include "palacios.h" -#include +#include static struct list_head global_files; @@ -76,6 +76,7 @@ static int palacios_file_close(void * file_ptr) { list_del(&(pfile->file_node)); + kfree(pfile->path); kfree(pfile); return 0; @@ -156,3 +157,12 @@ int palacios_file_init( void ) { return 0; } + + +int palacios_file_deinit( void ) { + if (!list_empty(&(global_files))) { + printk("Error removing module with open files\n"); + } + + return 0; +}