mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] partition: Fix wrong check
@ 2025-08-18  8:39 Sascha Hauer
  2025-08-19  5:59 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2025-08-18  8:39 UTC (permalink / raw)
  To: Barebox List

In region_overlap_end_exclusive() we pass startb - 1 as endb argument to
region_overlap_end_inclusive() which is obviously wrong. Fix this.

Fixes: 768fdb36f3 partition: define new region_overlap_end_exclusive helper
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 include/range.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/range.h b/include/range.h
index e7819017e4..bb41dc78ac 100644
--- a/include/range.h
+++ b/include/range.h
@@ -38,7 +38,7 @@ static inline bool region_overlap_end_exclusive(u64 starta, u64 enda,
 		return false;
 
 	return region_overlap_end_inclusive(starta, enda - 1,
-					    startb, startb - 1);
+					    startb, endb - 1);
 }
 
 
-- 
2.39.5




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH master] partition: Fix wrong check
  2025-08-18  8:39 [PATCH master] partition: Fix wrong check Sascha Hauer
@ 2025-08-19  5:59 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2025-08-19  5:59 UTC (permalink / raw)
  To: Barebox List, Sascha Hauer


On Mon, 18 Aug 2025 10:39:02 +0200, Sascha Hauer wrote:
> In region_overlap_end_exclusive() we pass startb - 1 as endb argument to
> region_overlap_end_inclusive() which is obviously wrong. Fix this.
> 
> 

Applied, thanks!

[1/1] partition: Fix wrong check
      https://git.pengutronix.de/cgit/barebox/commit/?id=f74cd4ff8a31 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-19  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-18  8:39 [PATCH master] partition: Fix wrong check Sascha Hauer
2025-08-19  5:59 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox