.. | .. |
---|
695 | 695 | |
---|
696 | 696 | out_failed: |
---|
697 | 697 | reiserfs_write_unlock(dir->i_sb); |
---|
| 698 | + reiserfs_security_free(&security); |
---|
698 | 699 | return retval; |
---|
699 | 700 | } |
---|
700 | 701 | |
---|
.. | .. |
---|
778 | 779 | |
---|
779 | 780 | out_failed: |
---|
780 | 781 | reiserfs_write_unlock(dir->i_sb); |
---|
| 782 | + reiserfs_security_free(&security); |
---|
781 | 783 | return retval; |
---|
782 | 784 | } |
---|
783 | 785 | |
---|
.. | .. |
---|
838 | 840 | */ |
---|
839 | 841 | INC_DIR_INODE_NLINK(dir) |
---|
840 | 842 | |
---|
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); |
---|
845 | 847 | if (retval) { |
---|
846 | 848 | DEC_DIR_INODE_NLINK(dir) |
---|
847 | 849 | goto out_failed; |
---|
.. | .. |
---|
876 | 878 | retval = journal_end(&th); |
---|
877 | 879 | out_failed: |
---|
878 | 880 | reiserfs_write_unlock(dir->i_sb); |
---|
| 881 | + reiserfs_security_free(&security); |
---|
879 | 882 | return retval; |
---|
880 | 883 | } |
---|
881 | 884 | |
---|
.. | .. |
---|
967 | 970 | reiserfs_update_sd(&th, inode); |
---|
968 | 971 | |
---|
969 | 972 | DEC_DIR_INODE_NLINK(dir) |
---|
970 | | - dir->i_size -= (DEH_SIZE + de.de_entrylen); |
---|
| 973 | + dir->i_size -= (DEH_SIZE + de.de_entrylen); |
---|
971 | 974 | reiserfs_update_sd(&th, dir); |
---|
972 | 975 | |
---|
973 | 976 | /* prevent empty directory from getting lost */ |
---|
.. | .. |
---|
1191 | 1194 | retval = journal_end(&th); |
---|
1192 | 1195 | out_failed: |
---|
1193 | 1196 | reiserfs_write_unlock(parent_dir->i_sb); |
---|
| 1197 | + reiserfs_security_free(&security); |
---|
1194 | 1198 | return retval; |
---|
1195 | 1199 | } |
---|
1196 | 1200 | |
---|