Message ID | 169657720558.1491153.15670462991242849575.stgit@dwillia2-xfh.jf.intel.com |
---|---|
State | Accepted |
Commit | 88d3917f82ed4215a2154432c26de1480a61b209 |
Headers | show |
Series | cxl/mem: Fix shutdown order | expand |
diff --git a/drivers/cxl/core/memdev.c b/drivers/cxl/core/memdev.c index a02061028b71..fed9573cf355 100644 --- a/drivers/cxl/core/memdev.c +++ b/drivers/cxl/core/memdev.c @@ -559,8 +559,8 @@ static void cxl_memdev_unregister(void *_cxlmd) struct cxl_memdev *cxlmd = _cxlmd; struct device *dev = &cxlmd->dev; - cxl_memdev_shutdown(dev); cdev_device_del(&cxlmd->cdev, dev); + cxl_memdev_shutdown(dev); put_device(dev); }