infra: safeguard interim removal

This commit is contained in:
Thomas Schoebel-Theuer 2020-03-05 18:55:12 +01:00
parent c4b79885d1
commit 29060936ed

View File

@ -1661,6 +1661,10 @@ void _op_remove(struct say_channel **say_channel,
struct mars_dent *dent = container_of(tmp, struct mars_dent, dent_link);
if (!dent->d_killme)
continue;
if (dent->d_child_count)
continue;
if (!list_empty(&dent->brick_list))
continue;
bind_to_dent(dent, say_channel);