diff options
Diffstat (limited to 'drivers/misc/cxl/context.c')
-rw-r--r-- | drivers/misc/cxl/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cxl/context.c b/drivers/misc/cxl/context.c index 0355d42d367f..5fe529b43ebe 100644 --- a/drivers/misc/cxl/context.c +++ b/drivers/misc/cxl/context.c | |||
@@ -95,7 +95,7 @@ int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) | |||
95 | */ | 95 | */ |
96 | mutex_lock(&afu->contexts_lock); | 96 | mutex_lock(&afu->contexts_lock); |
97 | idr_preload(GFP_KERNEL); | 97 | idr_preload(GFP_KERNEL); |
98 | i = idr_alloc(&ctx->afu->contexts_idr, ctx, ctx->afu->adapter->min_pe, | 98 | i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, |
99 | ctx->afu->num_procs, GFP_NOWAIT); | 99 | ctx->afu->num_procs, GFP_NOWAIT); |
100 | idr_preload_end(); | 100 | idr_preload_end(); |
101 | mutex_unlock(&afu->contexts_lock); | 101 | mutex_unlock(&afu->contexts_lock); |