projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
119c65e
)
xfs: assert a valid limit in xfs_rtfind_forw
author
Christoph Hellwig
<hch@lst.de>
Fri, 30 Aug 2024 22:36:54 +0000
(15:36 -0700)
committer
Darrick J. Wong
<djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000
(08:58 -0700)
Protect against developers passing stupid limits when refactoring the
RT code once again.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_rtbitmap.c
patch
|
blob
|
history
diff --git
a/fs/xfs/libxfs/xfs_rtbitmap.c
b/fs/xfs/libxfs/xfs_rtbitmap.c
index
9feeefe
..
4de97c4
100644
(file)
--- a/
fs/xfs/libxfs/xfs_rtbitmap.c
+++ b/
fs/xfs/libxfs/xfs_rtbitmap.c
@@
-315,6
+315,8
@@
xfs_rtfind_forw(
xfs_rtword_t incore;
unsigned int word; /* word number in the buffer */
+ ASSERT(start <= limit);
+
/*
* Compute and read in starting bitmap block for starting block.
*/