diff options
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/vfs_inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c index c7c23eab9440..84159cf9c521 100644 --- a/fs/9p/vfs_inode.c +++ b/fs/9p/vfs_inode.c | |||
@@ -1128,6 +1128,7 @@ v9fs_vfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
1128 | v9fs_stat2inode(st, dentry->d_inode, dentry->d_inode->i_sb); | 1128 | v9fs_stat2inode(st, dentry->d_inode, dentry->d_inode->i_sb); |
1129 | generic_fillattr(dentry->d_inode, stat); | 1129 | generic_fillattr(dentry->d_inode, stat); |
1130 | 1130 | ||
1131 | p9stat_free(st); | ||
1131 | kfree(st); | 1132 | kfree(st); |
1132 | return 0; | 1133 | return 0; |
1133 | } | 1134 | } |
@@ -1489,6 +1490,7 @@ static int v9fs_readlink(struct dentry *dentry, char *buffer, int buflen) | |||
1489 | 1490 | ||
1490 | retval = strnlen(buffer, buflen); | 1491 | retval = strnlen(buffer, buflen); |
1491 | done: | 1492 | done: |
1493 | p9stat_free(st); | ||
1492 | kfree(st); | 1494 | kfree(st); |
1493 | return retval; | 1495 | return retval; |
1494 | } | 1496 | } |