diff options
Diffstat (limited to 'drivers/misc/cxl/api.c')
-rw-r--r-- | drivers/misc/cxl/api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/cxl/api.c b/drivers/misc/cxl/api.c index af23d7dfe752..2e5233b60971 100644 --- a/drivers/misc/cxl/api.c +++ b/drivers/misc/cxl/api.c | |||
@@ -247,7 +247,9 @@ int cxl_start_context(struct cxl_context *ctx, u64 wed, | |||
247 | cxl_ctx_get(); | 247 | cxl_ctx_get(); |
248 | 248 | ||
249 | if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { | 249 | if ((rc = cxl_ops->attach_process(ctx, kernel, wed, 0))) { |
250 | put_pid(ctx->glpid); | ||
250 | put_pid(ctx->pid); | 251 | put_pid(ctx->pid); |
252 | ctx->glpid = ctx->pid = NULL; | ||
251 | cxl_adapter_context_put(ctx->afu->adapter); | 253 | cxl_adapter_context_put(ctx->afu->adapter); |
252 | cxl_ctx_put(); | 254 | cxl_ctx_put(); |
253 | goto out; | 255 | goto out; |