]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: always init bma in xfs_bmapi_write libxfs-5.1-sync_2019-04-01
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 27 Mar 2019 22:40:07 +0000 (15:40 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 1 Apr 2019 16:41:31 +0000 (09:41 -0700)
commit8ff9195db008d61169df5bb17ef8199cc87331f8
treea5fe91b939a0bd169911f62603107ffdbb6fbbb4
parent15f4f043eedf5440ce76981f65071fb6db384b30
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: Darrick J. Wong <darrick.wong@oracle.com>
libxfs/xfs_bmap.c