Merge "Enable exporting the non-uapi scsi headers." am: 6be65c135b
am: d0b030eb9c
Change-Id: I90f87bfd05e8be59ad507f3466b8f78c0e885656
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 8e7a141..201e187 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -1776,6 +1776,9 @@
if (local_unload_list.contains(child)) {
continue;
} else if (child->is_linked() && child->get_local_group_root() != root) {
+ child->get_parents().remove_if([&] (const soinfo* parent) {
+ return parent == si;
+ });
external_unload_list.push_back(child);
} else if (child->get_parents().empty()) {
unload_list.push_back(child);