]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f25c63ae9664d051620fe7550978a3e7997eddf
tree886481f2e5c89103b06d6827486d9351b0051dfa
parent709ea5c9a2c7fb6a29c5540b9911be3f33c31e30
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