File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4247,9 +4247,9 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
4247
4247
}
4248
4248
4249
4249
t32 = lrh_length (lrh );
4250
- rec_len -= t32 ;
4250
+ attr_names_bytes = rec_len - t32 ;
4251
4251
4252
- attr_names = kmemdup (Add2Ptr (lrh , t32 ), rec_len , GFP_NOFS );
4252
+ attr_names = kmemdup (Add2Ptr (lrh , t32 ), attr_names_bytes , GFP_NOFS );
4253
4253
if (!attr_names ) {
4254
4254
err = - ENOMEM ;
4255
4255
goto out ;
@@ -4281,14 +4281,14 @@ int log_replay(struct ntfs_inode *ni, bool *initialized)
4281
4281
t16 = le16_to_cpu (lrh -> redo_off );
4282
4282
4283
4283
rt = Add2Ptr (lrh , t16 );
4284
- t32 = rec_len - t16 ;
4284
+ oatbl_bytes = rec_len - t16 ;
4285
4285
4286
- if (!check_rstbl (rt , t32 )) {
4286
+ if (!check_rstbl (rt , oatbl_bytes )) {
4287
4287
err = - EINVAL ;
4288
4288
goto out ;
4289
4289
}
4290
4290
4291
- oatbl = kmemdup (rt , t32 , GFP_NOFS );
4291
+ oatbl = kmemdup (rt , oatbl_bytes , GFP_NOFS );
4292
4292
if (!oatbl ) {
4293
4293
err = - ENOMEM ;
4294
4294
goto out ;
You can’t perform that action at this time.
0 commit comments