Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfs: don't perform lookups on zero-height btrees
If the caller passes in a cursor to a zero-height btree (which is impossible), we never set block to anything but NULL, which causes the later dereference of it to crash. Instead, just return -EFSCORRUPTED. Signed-off-by: Darrick J. Wong <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Dave Chinner <[email protected]>
- Loading branch information