]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/jump_label.c
Merge tag 'for-linus-5.4-1' of git://github.com/cminyard/linux-ipmi
[linux.git] / kernel / jump_label.c
index df3008419a1d0a34229580d86a2aec2f0e305d2a..cdb3ffab128b64a44f331d452501c0544a16389f 100644 (file)
@@ -407,7 +407,9 @@ static bool jump_label_can_update(struct jump_entry *entry, bool init)
                return false;
 
        if (!kernel_text_address(jump_entry_code(entry))) {
-               WARN_ONCE(1, "can't patch jump_label at %pS", (void *)jump_entry_code(entry));
+               WARN_ONCE(!jump_entry_is_init(entry),
+                         "can't patch jump_label at %pS",
+                         (void *)jump_entry_code(entry));
                return false;
        }