diff options
Diffstat (limited to 'fs/isofs')
-rw-r--r-- | fs/isofs/inode.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index 1652de1b6cb9..298f08be22d4 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
@@ -855,8 +855,7 @@ root_found: | |||
855 | if (opt.check == 'r') table++; | 855 | if (opt.check == 'r') table++; |
856 | s->s_root->d_op = &isofs_dentry_ops[table]; | 856 | s->s_root->d_op = &isofs_dentry_ops[table]; |
857 | 857 | ||
858 | if (opt.iocharset) | 858 | kfree(opt.iocharset); |
859 | kfree(opt.iocharset); | ||
860 | 859 | ||
861 | return 0; | 860 | return 0; |
862 | 861 | ||
@@ -895,8 +894,7 @@ out_unknown_format: | |||
895 | out_freebh: | 894 | out_freebh: |
896 | brelse(bh); | 895 | brelse(bh); |
897 | out_freesbi: | 896 | out_freesbi: |
898 | if (opt.iocharset) | 897 | kfree(opt.iocharset); |
899 | kfree(opt.iocharset); | ||
900 | kfree(sbi); | 898 | kfree(sbi); |
901 | s->s_fs_info = NULL; | 899 | s->s_fs_info = NULL; |
902 | return -EINVAL; | 900 | return -EINVAL; |
@@ -1164,8 +1162,7 @@ out_nomem: | |||
1164 | 1162 | ||
1165 | out_noread: | 1163 | out_noread: |
1166 | printk(KERN_INFO "ISOFS: unable to read i-node block %lu\n", block); | 1164 | printk(KERN_INFO "ISOFS: unable to read i-node block %lu\n", block); |
1167 | if (tmpde) | 1165 | kfree(tmpde); |
1168 | kfree(tmpde); | ||
1169 | return -EIO; | 1166 | return -EIO; |
1170 | 1167 | ||
1171 | out_toomany: | 1168 | out_toomany: |
@@ -1334,8 +1331,7 @@ static void isofs_read_inode(struct inode *inode) | |||
1334 | init_special_inode(inode, inode->i_mode, inode->i_rdev); | 1331 | init_special_inode(inode, inode->i_mode, inode->i_rdev); |
1335 | 1332 | ||
1336 | out: | 1333 | out: |
1337 | if (tmpde) | 1334 | kfree(tmpde); |
1338 | kfree(tmpde); | ||
1339 | if (bh) | 1335 | if (bh) |
1340 | brelse(bh); | 1336 | brelse(bh); |
1341 | return; | 1337 | return; |