X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=blobdiff_plain;f=linux_module%2Fiface-file.c;fp=linux_module%2Fiface-file.c;h=880c4d98dc53a5819a5e0c207fec0013e5ee8200;hp=6f69c3d7766dac38a32a29e89edd48a1b58646b1;hb=c8b23e99efde3aa5a2c26d1b8e9bc7dc914e6113;hpb=4e43946f01f687361197dc9571b7df02ae20de30 diff --git a/linux_module/iface-file.c b/linux_module/iface-file.c index 6f69c3d..880c4d9 100644 --- a/linux_module/iface-file.c +++ b/linux_module/iface-file.c @@ -21,7 +21,7 @@ static struct list_head global_files; #define isprint(a) ((a >= ' ') && (a <= '~')) #if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) -#define PAL_VFS_GETATTR(path, kstat) vfs_getattr(path.mnt, path.dentry, kstat) +#define PAL_VFS_GETATTR(path, kstat) vfs_getattr((path)->mnt, (path)->dentry, kstat) #else #define PAL_VFS_GETATTR(path, kstat) vfs_getattr(path, kstat) #endif @@ -282,7 +282,7 @@ static unsigned long long palacios_file_size(void * file_ptr) { struct kstat s; int ret; - ret = PAL_VFS_GETATTR(filp->f_path, &s); + ret = PAL_VFS_GETATTR(&(filp->f_path), &s); if (ret != 0) { ERROR("Failed to fstat file\n");