Skip to content
Commit cbed9fd7 authored by Luca Burelli's avatar Luca Burelli Committed by Anas Nashif
Browse files

llext: always initialize ext param in llext_load



It is not safe to assume that on entry to llext_load, *ext contains
either NULL or a previous reference to the same ext being loaded. For
example, the shell sample was passing an uninitialized value.

Initialize *ext from a search of the llext by name. If NULL, it is the
first instance of this llext (and on load error, it stays that way). If
not NULL, increment use count and return.

Signed-off-by: default avatarLuca Burelli <l.burelli@arduino.cc>
parent 5bf8edc8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment