xfs: fix a null pointer dereference in xfs_bmap_extents_to_btree
authorShan Hai <shan.hai@oracle.com>
Sat, 11 Aug 2018 00:55:55 +0000 (17:55 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sun, 12 Aug 2018 15:37:31 +0000 (08:37 -0700)
commit01239d77b9dd978863d1a75f0d095ab942a1fe66
tree886481f2e5c89103b06d6827486d9351b0051dfa
parentfa6c668d807b1e9ac041101dfcb59bd8e279cfe5
xfs: fix a null pointer dereference in xfs_bmap_extents_to_btree

Fuzzing tool reports a write to null pointer error in the
xfs_bmap_extents_to_btree, fix it by bailing out on encountering
a null pointer.

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_bmap.c