libs/libc/modlib/modlib_verify.c: Fix backward test for an error.

This commit is contained in:
Gregory Nutt
2018-06-01 09:21:47 -06:00
parent f3d940aac5
commit 12de93dd36
+1 -1
View File
@@ -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;