On Mon, Jul 27, 2015 at 12:52:42PM +0200, Heiko Carstens wrote:
> Yeah, just did that and it crashes ;)

Does this make it go?

---
--- a/kernel/jump_label.c
+++ b/kernel/jump_label.c
@@ -221,7 +221,10 @@ void __init jump_label_init(void)
        for (iter = iter_start; iter < iter_stop; iter++) {
                struct static_key *iterk;
 
-               arch_jump_label_transform_static(iter, jump_label_type(iter));
+               /* rewrite NOPs */
+               if (jump_label_type(iter) == JUMP_LABEL_NOP)
+                       arch_jump_label_transform_static(iter, JUMP_LABEL_NOP);
+
                iterk = jump_entry_key(iter);
                if (iterk == key)
                        continue;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to