]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: always init bma in xfs_bmapi_write libxfs-5.1-sync_2019-04-26
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, 26 Apr 2019 23:23:01 +0000 (16:23 -0700)
commit352af9d7aae09ebb5fd4f5533e35cf8c943d95b7
tree8a9f092aa8cd4ea3ead2e0296160ff9de4fd8c01
parent5bb7bf1c43ba3ff5220400b70d2ac4b58fb9d993
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