diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-09-17 21:06:38 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-09-20 06:19:58 (GMT) |
commit | 01bc132048cf9505ed49152cc82e583b18c5538d (patch) | |
tree | 8fcb15329670c500f92b99f555281b010e377dad /fs/tracefs | |
parent | c32b1ec8a266476494f04843434538cdb25d9190 (diff) | |
download | linux-01bc132048cf9505ed49152cc82e583b18c5538d.tar.xz |
xfs: check _alloc_read_agf buffer pointer before using
commit 10479e2dea83d4c421ad05dfc55d918aa8dfc0cd upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/tracefs')
0 files changed, 0 insertions, 0 deletions