Skip to content

Commit

Permalink
cxl: Reset default context for vPHB on release
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
mikey authored and mpe committed Jun 7, 2015
1 parent 502f159 commit f67b493
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/misc/cxl/vphb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit f67b493

Please sign in to comment.