You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Michael Ellerman
parent
502f159c02
commit
f67b4938af
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user