summaryrefslogtreecommitdiff
path: root/drivers/misc/cxl/phb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/cxl/phb.c')
-rw-r--r--drivers/misc/cxl/phb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/phb.c b/drivers/misc/cxl/phb.c
index 0935d44c1770..6ec69ada19f4 100644
--- a/drivers/misc/cxl/phb.c
+++ b/drivers/misc/cxl/phb.c
@@ -20,7 +20,7 @@ bool _cxl_pci_associate_default_context(struct pci_dev *dev, struct cxl_afu *afu
* in the virtual phb, we'll need a default context to attach them to.
*/
ctx = cxl_dev_context_init(dev);
- if (!ctx)
+ if (IS_ERR(ctx))
return false;
dev->dev.archdata.cxl_ctx = ctx;