dm-integrity: fix wrong fallthrough in integrity_bio_wait

If dm_integrity_map_inline returned DM_MAPIO_KILL, the code would set
status BLK_STS_IOERR and then incorrectly fall through and submit the
bio. Luckily, dm_integrity_map_inline can't return DM_MAPIO_KILL at this
point, so the bug is just theoretical.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-4.6
This commit is contained in:
Mikulas Patocka 2026-07-13 21:24:38 +02:00
parent 4e53905a9d
commit 553f9a9a36

View File

@ -2782,7 +2782,8 @@ static void integrity_bio_wait(struct work_struct *w)
switch (r) {
case DM_MAPIO_KILL:
bio->bi_status = BLK_STS_IOERR;
fallthrough;
bio_endio(bio);
return;
case DM_MAPIO_REMAPPED:
submit_bio_noacct(bio);
fallthrough;