|
@@ -461,7 +461,7 @@ _xfs_buf_find(
|
|
* have to check that the buffer falls within the filesystem bounds.
|
|
* have to check that the buffer falls within the filesystem bounds.
|
|
*/
|
|
*/
|
|
eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks);
|
|
eofs = XFS_FSB_TO_BB(btp->bt_mount, btp->bt_mount->m_sb.sb_dblocks);
|
|
- if (blkno >= eofs) {
|
|
|
|
|
|
+ if (blkno < 0 || blkno >= eofs) {
|
|
/*
|
|
/*
|
|
* XXX (dgc): we should really be returning -EFSCORRUPTED here,
|
|
* XXX (dgc): we should really be returning -EFSCORRUPTED here,
|
|
* but none of the higher level infrastructure supports
|
|
* but none of the higher level infrastructure supports
|