diff --git a/drivers/misc/cxl/irq.c b/drivers/misc/cxl/irq.c index 62823784f68e3f6a36e5a48969b9114ff552fd20..72bf45ae38060c65a42c218aa82bbb7cf2161bf4 100644 --- a/drivers/misc/cxl/irq.c +++ b/drivers/misc/cxl/irq.c @@ -520,4 +520,8 @@ void afu_release_irqs(struct cxl_context *ctx, void *cookie) afu_irq_name_free(ctx); cxl_release_irq_ranges(&ctx->irqs, ctx->afu->adapter); + + kfree(ctx->irq_bitmap); + ctx->irq_bitmap = NULL; + ctx->irq_count = 0; }