Fix orig address checking 93/151093/3
authorAlexander Aksenov <a.aksenov@samsung.com>
Tue, 19 Sep 2017 09:59:09 +0000 (12:59 +0300)
committerAlexander Aksenov <a.aksenov@samsung.com>
Fri, 22 Sep 2017 08:24:55 +0000 (08:24 +0000)
Change-Id: Ib7c3cbf6850605ea2c5e54940bf749b8585b3a77
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
helper/got_patching.c

index 8834d3e..089b630 100644 (file)
@@ -142,7 +142,7 @@ static void *_get_orig_on_demand(unsigned long addr)
        if (ret == 0)
                return NULL;
 
-       if (sym_info.dli_saddr)
+       if (!sym_info.dli_saddr)
                return NULL;
 
        if (!strcmp(probelib_main, sym_info.dli_fname) ||