diff options
Diffstat (limited to 'fs/xfs/xfs_dir2.c')
-rw-r--r-- | fs/xfs/xfs_dir2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_dir2.c b/fs/xfs/xfs_dir2.c index 7cb26529766b..0284af1734bd 100644 --- a/fs/xfs/xfs_dir2.c +++ b/fs/xfs/xfs_dir2.c | |||
@@ -493,7 +493,7 @@ xfs_dir2_grow_inode( | |||
493 | args->firstblock, args->total, | 493 | args->firstblock, args->total, |
494 | &mapp[mapi], &nmap, args->flist, | 494 | &mapp[mapi], &nmap, args->flist, |
495 | NULL))) { | 495 | NULL))) { |
496 | kmem_free(mapp, sizeof(*mapp) * count); | 496 | kmem_free(mapp); |
497 | return error; | 497 | return error; |
498 | } | 498 | } |
499 | if (nmap < 1) | 499 | if (nmap < 1) |
@@ -525,14 +525,14 @@ xfs_dir2_grow_inode( | |||
525 | mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != | 525 | mapp[mapi - 1].br_startoff + mapp[mapi - 1].br_blockcount != |
526 | bno + count) { | 526 | bno + count) { |
527 | if (mapp != &map) | 527 | if (mapp != &map) |
528 | kmem_free(mapp, sizeof(*mapp) * count); | 528 | kmem_free(mapp); |
529 | return XFS_ERROR(ENOSPC); | 529 | return XFS_ERROR(ENOSPC); |
530 | } | 530 | } |
531 | /* | 531 | /* |
532 | * Done with the temporary mapping table. | 532 | * Done with the temporary mapping table. |
533 | */ | 533 | */ |
534 | if (mapp != &map) | 534 | if (mapp != &map) |
535 | kmem_free(mapp, sizeof(*mapp) * count); | 535 | kmem_free(mapp); |
536 | *dbp = xfs_dir2_da_to_db(mp, (xfs_dablk_t)bno); | 536 | *dbp = xfs_dir2_da_to_db(mp, (xfs_dablk_t)bno); |
537 | /* | 537 | /* |
538 | * Update file's size if this is the data space and it grew. | 538 | * Update file's size if this is the data space and it grew. |