llext: Fix wrong check

In llext_copy_symbols the check after llext_read
was looking the result of llext_seek operation instead
of the read.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2023-10-19 13:21:59 -07:00 committed by Carles Cufí
commit 2d5b781e99

View file

@ -386,7 +386,7 @@ static inline int llext_copy_symbols(struct llext_loader *ldr, struct llext *ext
goto out;
}
llext_read(ldr, name, sizeof(name));
ret = llext_read(ldr, name, sizeof(name));
if (ret != 0) {
goto out;
}