core: fix reloading multiple confexts at the same time
[] has higher precedence than pointer dereference, hence hilarity
ensues as soon as there are multuple images
Originally reported on yeswehack.com as:
YWH-PGM9780-122
Follow-up for dfdeb0b1cb
This commit is contained in:
@@ -3877,7 +3877,7 @@ static int handle_mount_from_grandchild(
|
||||
if (r < 0)
|
||||
return log_oom_debug();
|
||||
|
||||
*fd_layers[(*n_fd_layers)++] = TAKE_FD(tree_fd);
|
||||
(*fd_layers)[(*n_fd_layers)++] = TAKE_FD(tree_fd);
|
||||
}
|
||||
m->overlay_layers = strv_free(m->overlay_layers);
|
||||
m->overlay_layers = TAKE_PTR(new_layers);
|
||||
|
||||
Reference in New Issue
Block a user