diff options
Diffstat (limited to 'fs/xfs/xfs_itable.c')
-rw-r--r-- | fs/xfs/xfs_itable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c index a8a06bb78ea8..f5c955d35be4 100644 --- a/fs/xfs/xfs_itable.c +++ b/fs/xfs/xfs_itable.c | |||
@@ -272,6 +272,7 @@ xfs_bulkstat_to_bstat( | |||
272 | struct xfs_bstat *bs1, | 272 | struct xfs_bstat *bs1, |
273 | const struct xfs_bulkstat *bstat) | 273 | const struct xfs_bulkstat *bstat) |
274 | { | 274 | { |
275 | /* memset is needed here because of padding holes in the structure. */ | ||
275 | memset(bs1, 0, sizeof(struct xfs_bstat)); | 276 | memset(bs1, 0, sizeof(struct xfs_bstat)); |
276 | bs1->bs_ino = bstat->bs_ino; | 277 | bs1->bs_ino = bstat->bs_ino; |
277 | bs1->bs_mode = bstat->bs_mode; | 278 | bs1->bs_mode = bstat->bs_mode; |
@@ -388,6 +389,8 @@ xfs_inumbers_to_inogrp( | |||
388 | struct xfs_inogrp *ig1, | 389 | struct xfs_inogrp *ig1, |
389 | const struct xfs_inumbers *ig) | 390 | const struct xfs_inumbers *ig) |
390 | { | 391 | { |
392 | /* memset is needed here because of padding holes in the structure. */ | ||
393 | memset(ig1, 0, sizeof(struct xfs_inogrp)); | ||
391 | ig1->xi_startino = ig->xi_startino; | 394 | ig1->xi_startino = ig->xi_startino; |
392 | ig1->xi_alloccount = ig->xi_alloccount; | 395 | ig1->xi_alloccount = ig->xi_alloccount; |
393 | ig1->xi_allocmask = ig->xi_allocmask; | 396 | ig1->xi_allocmask = ig->xi_allocmask; |