ocxl: Fix misleading comment
Subsystems (2)
PATCH 1/1 ocxl: Fix misleading comment
In ocxl_context_free() we note that the AFU reference we're releasing was taken in "ocxl_context_init", a function that doesn't actually exist.
Fix it to say ocxl_context_alloc() instead, which I expect was what was intended.
--- drivers/misc/ocxl/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/ocxl/context.c +1 -1
@@ -287,7 +287,7 @@ void ocxl_context_free(struct ocxl_context *ctx)ocxl_afu_irq_free_all (ctx);idr_destroy (&ctx->irq_idr); -/* reference to the AFU taken in ocxl_context_init */ +/* reference to the AFU taken in ocxl_context_alloc() */ ocxl_afu_put (ctx->afu);kfree (ctx); }
Signature · 1 line
2.20.1
Le 26/02/2020 à 05:39, Andrew Donnellan a écrit :
Quoted 10 lines
In
ocxl_context_free()we note that the AFU reference we're releasing was taken in "ocxl_context_init", a function that doesn't actually exist.Fix it to say
ocxl_context_alloc()instead, which I expect was what was intended.Fixes 5ef3166e8a32 ("ocxl: Driver code for 'generic' opencapi devices")Cc Frederic Barrat <[email protected]>Signed-off-by Andrew Donnellan <[email protected]>---
ocxl_context_init() used to exist. It was renamed to ocxl_context_alloc() for good reasons as part of later work. So it should really be:
Quoted 17 lines
drivers/misc/ocxl/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/misc/ocxl/context.c +1
-1@@ -287,7 +287,7 @@ void ocxl_context_free(struct ocxl_context *ctx)ocxl_afu_irq_free_all (ctx);idr_destroy (&ctx->irq_idr); -/* reference to the AFU taken in ocxl_context_init */ +/* reference to the AFU taken in ocxl_context_alloc() */ ocxl_afu_put (ctx->afu);kfree (ctx); }
Michael Ellerman
AppliedQuoted 5 lines · Andrew Donnellan
In
ocxl_context_free()we note that the AFU reference we're releasing was taken in "ocxl_context_init", a function that doesn't actually exist.Fix it to say
ocxl_context_alloc()instead, which I expect was what was intended.
Applied to powerpc/next.
[1/1] ocxl: Fix misleading comment
https://git.kernel.org/powerpc/c/a0594e89c9dc8e37883cc0d6642d1baad9c0744e
cheers