Skip to content

device: fix crash when master connection fails

Beniamino Galvani requested to merge bg/rh1747998 into master

When the master AC becomes ready, activate_stage1_device_prepare() is called in a idle handler. If the master AC fails in the meantime, it will change state to deactivating or deactivated. We must check for that condition before proceeding with slave activation. Note the the 'master_ready' flag of an AC is never cleared after it is set.

Fixes: 5b677d5a ('device: move check for master from nm_device_activate_schedule_stage2_device_config() to end of stage1')

https://bugzilla.redhat.com/show_bug.cgi?id=1747998

Edited by Beniamino Galvani

Merge request reports