projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cec5725
)
xfs: add missing rmap error return
author
Darrick J. Wong
<darrick.wong@oracle.com>
Fri, 4 May 2018 22:31:21 +0000
(15:31 -0700)
committer
Darrick J. Wong
<darrick.wong@oracle.com>
Thu, 10 May 2018 15:56:41 +0000
(08:56 -0700)
xfs_rmap_lookup_le_range can return errors, so we need to check for
them and bail out.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_rmap.c
patch
|
blob
|
history
diff --git
a/fs/xfs/libxfs/xfs_rmap.c
b/fs/xfs/libxfs/xfs_rmap.c
index
fba8d27
..
f7769ed
100644
(file)
--- a/
fs/xfs/libxfs/xfs_rmap.c
+++ b/
fs/xfs/libxfs/xfs_rmap.c
@@
-1374,6
+1374,8
@@
xfs_rmap_convert_shared(
*/
error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
&PREV, &i);
+ if (error)
+ goto done;
XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);
ASSERT(PREV.rm_offset <= offset);