mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
cxl: Don't ignore add_process_element() result when attaching context
Currently when attaching a context in dedicated mode, we ignore the result of add_process_element(), which could potentially fail. If add_process_element() returns an error, pass it back to the caller. Signed-off-by: Daniel Axtens <dja@axtens.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
62521ea6db
commit
368857c16c
1 changed files with 1 additions and 3 deletions
|
@ -492,9 +492,7 @@ static int attach_afu_directed(struct cxl_context *ctx, u64 wed, u64 amr)
|
||||||
if ((result = cxl_afu_check_and_enable(ctx->afu)))
|
if ((result = cxl_afu_check_and_enable(ctx->afu)))
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
add_process_element(ctx);
|
return add_process_element(ctx);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int deactivate_afu_directed(struct cxl_afu *afu)
|
static int deactivate_afu_directed(struct cxl_afu *afu)
|
||||||
|
|
Loading…
Add table
Reference in a new issue