Skip to content

checkpoint: Fix segfault crash when rollback

Gris Ge requested to merge cathay4t/NetworkManager:fix_crash_rollback into main

When rolling back a checkpoint, NM will crash due to dereference a NULL pointer of priv->removed_devices->len.

To fix it, we just place a NULL check before that code block.

Fixes: 1f1b71ad ('checkpoint: preserve devices that were removed and readded')

Reference: https://issues.redhat.com/browse/RHEL-1526

Edited by Gris Ge

Merge request reports