mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
libs/libc/modlib/modlib_verify.c: Fix backward test for an error.
This commit is contained in:
@@ -104,7 +104,7 @@ int modlib_verifyheader(FAR const Elf32_Ehdr *ehdr)
|
||||
|
||||
/* Verify that this file works with the currently configured architecture */
|
||||
|
||||
if (up_checkarch(ehdr))
|
||||
if (!up_checkarch(ehdr))
|
||||
{
|
||||
serr("ERROR: Not a supported architecture\n");
|
||||
return -ENOEXEC;
|
||||
|
||||
Reference in New Issue
Block a user