File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -367,12 +367,15 @@ static void __jump_label_update(struct static_key *key,
367
367
{
368
368
for (; (entry < stop ) && (jump_entry_key (entry ) == key ); entry ++ ) {
369
369
/*
370
- * entry->code set to 0 invalidates module init text sections
371
- * kernel_text_address() verifies we are not in core kernel
372
- * init code, see jump_label_invalidate_module_init().
370
+ * An entry->code of 0 indicates an entry which has been
371
+ * disabled because it was in an init text area.
373
372
*/
374
- if (entry -> code && kernel_text_address (entry -> code ))
375
- arch_jump_label_transform (entry , jump_label_type (entry ));
373
+ if (entry -> code ) {
374
+ if (kernel_text_address (entry -> code ))
375
+ arch_jump_label_transform (entry , jump_label_type (entry ));
376
+ else
377
+ WARN_ONCE (1 , "can't patch jump_label at %pS" , (void * )entry -> code );
378
+ }
376
379
}
377
380
}
378
381
You can’t perform that action at this time.
0 commit comments