Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm cache: fix use after freeing migrations
Both free_io_migration() and issue_discard() dereference a migration that was just freed. Fix those by saving off the migrations's cache object before freeing the migration. Also cleanup needless mg->cache dereferences now that the cache object is available directly. Fixes: e44b6a5 ("dm cache: move wake_waker() from free_migrations() to where it is needed") Signed-off-by: Joe Thornber <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
- Loading branch information