]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: check _alloc_read_agf buffer pointer before using
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Jul 2017 21:30:57 +0000 (14:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 20 Jul 2017 21:42:33 +0000 (14:42 -0700)
commit10479e2dea83d4c421ad05dfc55d918aa8dfc0cd
tree65bd2a8994345c5b793541206f54a15bf56903a9
parent4c1a67bd3606540b9b42caff34a1d5cd94b1cf65
xfs: check _alloc_read_agf buffer pointer before using

In some circumstances, _alloc_read_agf can return an error code of zero
but also a null AGF buffer pointer.  Check for this and jump out.

Fixes-coverity-id: 1415250
Fixes-coverity-id: 1415320
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_refcount.c
fs/xfs/xfs_reflink.c