diff options
author | Michael Neuling <mikey@neuling.org> | 2015-06-05 07:38:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-06-07 12:12:39 +0300 |
commit | f67b4938af07e3ef3a925027a2fc62199c026e2b (patch) | |
tree | 1990d8223f8aaf58df864efcace5e24cc595cda8 /drivers/misc | |
parent | 502f159c0239863deebfc50e09c0892d0c157101 (diff) | |
download | linux-f67b4938af07e3ef3a925027a2fc62199c026e2b.tar.xz |
cxl: Reset default context for vPHB on release
When we release the device, we should also invalidate the default context.
With this cxl_get_context() will return null after removal.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/cxl/vphb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/cxl/vphb.c b/drivers/misc/cxl/vphb.c index f733309b65d5..b1d1983a84a5 100644 --- a/drivers/misc/cxl/vphb.c +++ b/drivers/misc/cxl/vphb.c @@ -72,6 +72,7 @@ static void cxl_pci_disable_device(struct pci_dev *dev) dev_err(&dev->dev, "Default context started\n"); return; } + dev->dev.archdata.cxl_ctx = NULL; cxl_release_context(ctx); } } |