summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-06-05 14:38:26 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-07 19:12:39 +1000
commitf67b4938af07e3ef3a925027a2fc62199c026e2b (patch)
tree1990d8223f8aaf58df864efcace5e24cc595cda8 /drivers/misc
parent502f159c0239863deebfc50e09c0892d0c157101 (diff)
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.c1
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);
}
}