Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2133717 authored by Lachlan McIlroy's avatar Lachlan McIlroy Committed by Tim Shimmin
Browse files

[XFS] Fix uninitialized br_state and br_startoff in


xfs_bmap_add_extent_delay_real()

SGI-PV: 957008
SGI-Modid: xfs-linux-melb:xfs-kern:27457a

Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: default avatarShailendra Tripathi <stripathi@agami.com>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 3f5a6ca3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1171,6 +1171,8 @@ xfs_bmap_add_extent_delay_real(
		xfs_bmap_trace_pre_update(fname, "0", ip, idx, XFS_DATA_FORK);
		xfs_bmbt_set_blockcount(ep, temp);
		r[0] = *new;
		r[1].br_state = PREV.br_state;
		r[1].br_startblock = 0;
		r[1].br_startoff = new_endoff;
		temp2 = PREV.br_startoff + PREV.br_blockcount - new_endoff;
		r[1].br_blockcount = temp2;