diff options
| author | Joe Thornber <[email protected]> | 2015-09-01 10:38:19 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2015-09-01 12:56:14 +0000 |
| commit | cc7da0ba9c96699592d0a69d7d146ac6adcc18e7 (patch) | |
| tree | 84a021e91e6bb4a9e395315fcf4a80bfc3f3fd51 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | dm cache: small cleanups related to deferred prison cell cleanup (diff) | |
| download | kernel-cc7da0ba9c96699592d0a69d7d146ac6adcc18e7.tar.gz kernel-cc7da0ba9c96699592d0a69d7d146ac6adcc18e7.zip | |
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: e44b6a5a3c ("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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
