Merge ecc7f159d1 ("dm-integrity: fix a warning on invalid table line") into android-mainline

Steps on the way to 6.6.90

Change-Id: I3c49cfdd1c1ae8d6b3fe92d7fce3b6365c3d8626
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-05-21 10:02:38 +00:00

View File

@@ -4687,7 +4687,7 @@ static void dm_integrity_dtr(struct dm_target *ti)
BUG_ON(!RB_EMPTY_ROOT(&ic->in_progress));
BUG_ON(!list_empty(&ic->wait_list));
if (ic->mode == 'B')
if (ic->mode == 'B' && ic->bitmap_flush_work.work.func)
cancel_delayed_work_sync(&ic->bitmap_flush_work);
if (ic->metadata_wq)
destroy_workqueue(ic->metadata_wq);