Skip to content

Commit

Permalink
[review] core: interrupt: rename .add handler to .configure
Browse files Browse the repository at this point in the history
Fix missing handling of interrupt_configure() return code.

Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Feb 14, 2025
1 parent 9193995 commit 19bd4f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/kernel/interrupt.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,11 @@ static TEE_Result add_configure_handler(struct itr_handler *hdl,
}
}

if (configure)
interrupt_configure(hdl->chip, hdl->it, type, prio);
if (configure) {
res = interrupt_configure(hdl->chip, hdl->it, type, prio);
if (res)
return res;
}

SLIST_INSERT_HEAD(&hdl->chip->handlers, hdl, link);

Expand Down

0 comments on commit 19bd4f5

Please sign in to comment.