libs/libc/modlib/modlib_verify.c: Fix backward test for an error.
This commit is contained in:
parent
f3d940aac5
commit
12de93dd36
@ -104,7 +104,7 @@ int modlib_verifyheader(FAR const Elf32_Ehdr *ehdr)
|
|||||||
|
|
||||||
/* Verify that this file works with the currently configured architecture */
|
/* 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");
|
serr("ERROR: Not a supported architecture\n");
|
||||||
return -ENOEXEC;
|
return -ENOEXEC;
|
||||||
|
Loading…
Reference in New Issue
Block a user