From 1c6179bfc1c6321e25451ba30b0f267911e26140 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Thu, 20 Aug 2026 01:23:28 +0200 Subject: [PATCH] Assert that raid_zero_block is non-null in raid_delta_gen --- raid/raid.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/raid/raid.c b/raid/raid.c index f752518c..b5d07407 100644 --- a/raid/raid.c +++ b/raid/raid.c @@ -295,6 +295,9 @@ void raid_delta_gen(int nr, int *id, int *ip, int nd, size_t size, void **v) int np; void *latest; + /* zero buffer must be initialized prior to delta recovery */ + BUG_ON(raid_zero_block == 0); + /* * Total number of parities we are going to process * they are both the used and the unused ones