Unregistering a child settings block can have almost arbitrary effects, due to the call to apply_settings(). Avoid potentially dereferencing a stale pointer by using list_first_entry() rather than list_for_each_entry_safe() to iterate over the list of child settings. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
499 |
|
499 |
|
500 |
|
500 |
|
501 |
|
501 |
|
502 |
|
|
|
503 |
|
502 |
|
504 |
|
503 |
|
505 |
|
|
|
|
504 |
|
|
|
505 |
|
|
506 |
|
506 |
|
507 |
|
507 |
|
508 |
|
508 |
|