]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: always init bma in xfs_bmapi_write libxfs-5.1-sync_2019-04-18 libxfs-5.1-sync_2019-04-22
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>
Fri, 19 Apr 2019 00:24:00 +0000 (17:24 -0700)
commit079c51c2a673f43c7d9a68d8d7f69ecbeed24fd1
tree8f7b9ab802d24cfaa594d0d02284cf12094dacaf
parenta2f0ef9c313062cdf0f5911b28bba9499c5fda66
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