]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: always init bma in xfs_bmapi_write libxfs-5.1-sync
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 6 May 2019 22:00:29 +0000 (18:00 -0400)
committerEric Sandeen <sandeen@redhat.com>
Mon, 6 May 2019 22:00:29 +0000 (18:00 -0400)
commit93ad4d9c02b56146ae2bfedad9dd440d1bc3b79e
treeaaf2b625aabae35c81a22f4dc4a64011fa7fcff7
parent82ed51db75e52697e80b5bb0150119d398520fe8
xfs: always init bma in xfs_bmapi_write

Source kernel commit: 4b0bce30f39b7733420bb8b28e340aa91c219bc1

Always init the tp/ip fields of bma in xfs_bmapi_write so that the
bmapi_finish at the bottom never trips over null transaction or inode
pointers.

Coverity-id: 1443964
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c