]> Pileus Git - ~andy/linux/blobdiff - arch/sh/kernel/dwarf.c
Merge branch 'tracing-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~andy/linux] / arch / sh / kernel / dwarf.c
index 2d07084e4882b2a35404c927e3f02a1392145284..d76a23170dbb7d0a6e8cd1aef093ba48431e3b84 100644 (file)
@@ -555,7 +555,7 @@ struct dwarf_frame * dwarf_unwind_stack(unsigned long pc,
         * NOTE: the return address is guaranteed to be setup by the
         * time this function makes its first function call.
         */
-       if (!pc && !prev)
+       if (!pc || !prev)
                pc = (unsigned long)current_text_addr();
 
 #ifdef CONFIG_FUNCTION_GRAPH_TRACER