mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
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:
parent
4e53905a9d
commit
553f9a9a36
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user