hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/fs/reiserfs/namei.c
....@@ -695,6 +695,7 @@
695695
696696 out_failed:
697697 reiserfs_write_unlock(dir->i_sb);
698
+ reiserfs_security_free(&security);
698699 return retval;
699700 }
700701
....@@ -778,6 +779,7 @@
778779
779780 out_failed:
780781 reiserfs_write_unlock(dir->i_sb);
782
+ reiserfs_security_free(&security);
781783 return retval;
782784 }
783785
....@@ -838,10 +840,10 @@
838840 */
839841 INC_DIR_INODE_NLINK(dir)
840842
841
- retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ ,
842
- old_format_only(dir->i_sb) ?
843
- EMPTY_DIR_SIZE_V1 : EMPTY_DIR_SIZE,
844
- dentry, inode, &security);
843
+ retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */,
844
+ old_format_only(dir->i_sb) ?
845
+ EMPTY_DIR_SIZE_V1 : EMPTY_DIR_SIZE,
846
+ dentry, inode, &security);
845847 if (retval) {
846848 DEC_DIR_INODE_NLINK(dir)
847849 goto out_failed;
....@@ -876,6 +878,7 @@
876878 retval = journal_end(&th);
877879 out_failed:
878880 reiserfs_write_unlock(dir->i_sb);
881
+ reiserfs_security_free(&security);
879882 return retval;
880883 }
881884
....@@ -967,7 +970,7 @@
967970 reiserfs_update_sd(&th, inode);
968971
969972 DEC_DIR_INODE_NLINK(dir)
970
- dir->i_size -= (DEH_SIZE + de.de_entrylen);
973
+ dir->i_size -= (DEH_SIZE + de.de_entrylen);
971974 reiserfs_update_sd(&th, dir);
972975
973976 /* prevent empty directory from getting lost */
....@@ -1191,6 +1194,7 @@
11911194 retval = journal_end(&th);
11921195 out_failed:
11931196 reiserfs_write_unlock(parent_dir->i_sb);
1197
+ reiserfs_security_free(&security);
11941198 return retval;
11951199 }
11961200