* [PATCH] cxl: Reset default context for vPHB on release
@ 2015-06-05 4:38 Michael Neuling
0 siblings, 0 replies; only message in thread
From: Michael Neuling @ 2015-06-05 4:38 UTC (permalink / raw)
To: mpe, benh
Cc: imunsie, linuxppc-dev, mikey, Daniel Axtens, Matthew R. Ochs,
Manoj N. Kumar, brking
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>
---
drivers/misc/cxl/vphb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/misc/cxl/vphb.c b/drivers/misc/cxl/vphb.c
index f733309..b1d1983a 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);
}
}
--
2.1.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-05 4:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05 4:38 [PATCH] cxl: Reset default context for vPHB on release Michael Neuling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).