mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
namespace: avoid assertion failure (#6649)
If the root image is not decrypted, it must not be relinquished.
This commit is contained in:
parent
7123a951d0
commit
07ce74074d
@ -1063,9 +1063,11 @@ int setup_namespace(
|
||||
if (r < 0)
|
||||
goto finish;
|
||||
|
||||
r = decrypted_image_relinquish(decrypted_image);
|
||||
if (r < 0)
|
||||
goto finish;
|
||||
if (decrypted_image) {
|
||||
r = decrypted_image_relinquish(decrypted_image);
|
||||
if (r < 0)
|
||||
goto finish;
|
||||
}
|
||||
|
||||
loop_device_relinquish(loop_device);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user