diff options
| -rw-r--r-- | kernel/jump_label.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/kernel/jump_label.c b/kernel/jump_label.c index df3008419a1d..cdb3ffab128b 100644 --- a/kernel/jump_label.c +++ b/kernel/jump_label.c @@ -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;  	} |